From f01b9fcd2e814e6c3cb5c5e9326f51c1eb6b7c3e Mon Sep 17 00:00:00 2001 From: Zolfa Date: Sat, 6 Jun 2020 00:16:52 +0200 Subject: [PATCH] prepare_lxc_container: var to skip ssh config for thin vm --- prepare_lxc_guest.yaml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/prepare_lxc_guest.yaml b/prepare_lxc_guest.yaml index 20dcf95..8700581 100644 --- a/prepare_lxc_guest.yaml +++ b/prepare_lxc_guest.yaml @@ -17,9 +17,12 @@ tags: - 'always' - - name: 'ssh server offline configuration' - import_role: name='ssh_server' + - block: + - name: 'ssh server offline configuration' + import_role: name='ssh_server' - - name: 'CONNECTION | use ssh [now host is online]' - set_fact: ansible_connection='ssh' + - name: 'CONNECTION | use ssh [now host is online]' + set_fact: ansible_connection='ssh' + + when: configure_ssh|d(true) ...