From: nicoo Date: Sat, 24 Nov 2018 22:14:09 +0000 (+0100) Subject: ansible/vm/install: Remove unecessary set_fact tasks X-Git-Url: https://git.realraum.at/?a=commitdiff_plain;h=35ee18e05f6abc674fc2f6cbea2994e259d0624a;p=noc.git ansible/vm/install: Remove unecessary set_fact tasks --- 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: