Add a nodns option to disable dns editing during update/reboot
This commit is contained in:
parent
464fcedf8e
commit
79e7986e5d
2 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue