mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
Add a nodns option to disable dns editing during update/reboot
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user