diff --git a/playbooks/vhost_reboot.yml b/playbooks/vhost_reboot.yml index cfe3d02206..510e4f81ea 100644 --- a/playbooks/vhost_reboot.yml +++ b/playbooks/vhost_reboot.yml @@ -2,6 +2,7 @@ # This playbook lets you safely reboot a virthost and all it's guests. # # requires --extra-vars="target=somevhost fqdn" +# Might add nodns=true to the extra vars #General overview: # talk to the vhost @@ -34,6 +35,7 @@ # Call out to another playbook. Disable any proxies that may live here - include: update-proxy-dns.yml status=disable proxies=myvms_new:&proxies + when: nodns != "true" - name: halt instances hosts: myvms_new @@ -99,6 +101,7 @@ # Call out to that dns playbook. Put proxies back in now that they're back - include: update-proxy-dns.yml status=enable proxies=myvms_new:&proxies + when: nodns != "true" - name: Fix unbound if necessary # intersection - hosts that are in our dynamic group and also in unbound-dns diff --git a/playbooks/vhost_update.yml b/playbooks/vhost_update.yml index 4c759985b5..a2bf57d750 100644 --- a/playbooks/vhost_update.yml +++ b/playbooks/vhost_update.yml @@ -1,6 +1,7 @@ # This playboook updates a virthost and all it's guests. # # requires --extra-vars="target=somevhostname yumcommand=update" +# Might add nodns=true at extra-vars # - name: find instances @@ -19,6 +20,7 @@ # Call out to another playbook. Disable any proxies that may live here - include: update-proxy-dns.yml status=disable proxies=myvms_new:&proxies + when: nodns != "true" - name: update the system hosts: "{{ target }}:myvms_new"