vhost_reboot: when rebooting ipa or rabbitmq hosts, restart some services after they come up.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2019-05-21 15:56:08 +00:00
parent 6765b95175
commit 661626a454

View file

@ -146,6 +146,14 @@
delegate_to: "{{os_delegate_via}}{{env_suffix}}.phx2.fedoraproject.org"
when: inventory_hostname.startswith(('os-node', 'os-master'))
- name: restart gssproxy if we rebooted a ipa server
service: name=gssproxy state=restarted
when: inventory_hostname.startswith('ipa')
- name: restart rabbitmq if we rebooted a rabbit server
service: name=rabbitmq-server state=restarted
when: inventory_hostname.startswith('rabbitmq')
# Call out to that dns playbook. Put proxies back in now that they're back
- import_playbook: update-proxy-dns.yml status=enable proxies=myvms_new:&proxies
when: nodns is not defined or not nodns