Skip to content

Instantly share code, notes, and snippets.

@evrardjp
Created June 24, 2016 08:30
Show Gist options
  • Save evrardjp/c4f15658ec512b61839149d4b49da715 to your computer and use it in GitHub Desktop.
Save evrardjp/c4f15658ec512b61839149d4b49da715 to your computer and use it in GitHub Desktop.
rabbitmq_restart.yml
- 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