Skip to content

Instantly share code, notes, and snippets.

@TomaszKlosinski
Created May 9, 2019 14:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TomaszKlosinski/fb6b6919104785f8bc7eefb53954e4b8 to your computer and use it in GitHub Desktop.
Save TomaszKlosinski/fb6b6919104785f8bc7eefb53954e4b8 to your computer and use it in GitHub Desktop.
Run Ansible task host by host
- name: start and enable rabbitmq (run task host by host)
service:
name: "rabbitmq-server"
state: "started"
enabled: true
delegate_to: "{{ item }}"
with_items: "{{ groups['rabbitmq'] }}"
run_once: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment