From 35ee18e05f6abc674fc2f6cbea2994e259d0624a Mon Sep 17 00:00:00 2001 From: nicoo Date: Sat, 24 Nov 2018 23:14:09 +0100 Subject: [PATCH] ansible/vm/install: Remove unecessary set_fact tasks --- ansible/roles/vm/install/tasks/main.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/ansible/roles/vm/install/tasks/main.yml b/ansible/roles/vm/install/tasks/main.yml index 31d5c8f..35f2c8e 100644 --- a/ansible/roles/vm/install/tasks/main.yml +++ b/ansible/roles/vm/install/tasks/main.yml @@ -31,15 +31,13 @@ when: hostname in vmhost_info -- name: enable installer in VM config - set_fact: - run_installer: True - - name: define new installer vm virt: name: "{{ hostname }}" command: define xml: "{{ lookup('template', 'libvirt-domain.xml.j2') }}" + vars: + run_installer: yes - name: start vm virt: @@ -68,15 +66,13 @@ name: "{{ hostname }}" command: undefine -- name: disable installer in VM config - set_fact: - run_installer: False - - name: define new production vm virt: name: "{{ hostname }}" command: define xml: "{{ lookup('template', 'libvirt-domain.xml.j2') }}" + vars: + run_installer: no - name: start vm virt: -- 1.7.10.4