From: nicoo Date: Mon, 28 Jan 2019 15:40:09 +0000 (+0100) Subject: Make `run_installer` default to no in the libvirt template X-Git-Url: https://git.realraum.at/?a=commitdiff_plain;h=3abc2ae7af2044464f4b47b92aeb4a9d43f0e285;p=noc.git Make `run_installer` default to no in the libvirt template --- diff --git a/ansible/roles/vm/install/templates/libvirt-domain.xml.j2 b/ansible/roles/vm/install/templates/libvirt-domain.xml.j2 index 9119f64..ff2ee60 100644 --- a/ansible/roles/vm/install/templates/libvirt-domain.xml.j2 +++ b/ansible/roles/vm/install/templates/libvirt-domain.xml.j2 @@ -5,7 +5,7 @@ {{ hostvars[hostname].install_cooked.numcpu }} hvm -{% if run_installer %} +{% if run_installer | default(False) %} {{ debian_installer_path }}/{{ install_distro }}-{{ install_codename }}/{{ hostvars[hostname].install_cooked.arch | default('amd64') }}/linux {{ preseed_tmpdir }}/initrd.preseed.gz console=ttyS0,115200n8 @@ -19,7 +19,7 @@ destroy -{% if run_installer %} +{% if run_installer | default(False) %} destroy destroy {% else %} diff --git a/ansible/vm-update.yml b/ansible/vm-update.yml index 548a49f..a5a2c83 100644 --- a/ansible/vm-update.yml +++ b/ansible/vm-update.yml @@ -33,9 +33,6 @@ - name: Update VM definition hosts: _vmhost_ - vars: - run_installer: no - tasks: - name: Wait for VM to shut down wait_for_virt: