Created
June 24, 2016 08:30
-
-
Save evrardjp/c4f15658ec512b61839149d4b49da715 to your computer and use it in GitHub Desktop.
rabbitmq_restart.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: Restart Rabbitmq containers | |
hosts: rabbitmq_all | |
serial: 1 | |
tasks: | |
- name: Restart node | |
shell: reboot | |
- name: Wait for Rabbitmq aliveness | |
wait_for: | |
port: 5672 | |
host: "{{ ansible_ssh_host }}" | |
delay: 5 | |
delegate_to: "{{ physical_host }}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment