From 661626a4542e4e6a989bdf9571b2a9c0b6eea656 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Tue, 21 May 2019 15:56:08 +0000 Subject: [PATCH] vhost_reboot: when rebooting ipa or rabbitmq hosts, restart some services after they come up. Signed-off-by: Kevin Fenzi --- playbooks/vhost_reboot.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/playbooks/vhost_reboot.yml b/playbooks/vhost_reboot.yml index 08d5641bde..79d55289be 100644 --- a/playbooks/vhost_reboot.yml +++ b/playbooks/vhost_reboot.yml @@ -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