Skip to content

Instantly share code, notes, and snippets.

@hostmaster
Created March 28, 2014 08:19
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 hostmaster/9827790 to your computer and use it in GitHub Desktop.
Save hostmaster/9827790 to your computer and use it in GitHub Desktop.
### signal the start of configuration
- hosts: localhost
tasks:
- irc:
channel={{ irc_channel }} server={{ irc_server }} msg="Preparing to update the servers"
### configure each webserver
- hosts: webservers
roles:
- apply_base_config
- webserver
- monitored
tasks:
- irc:
channel={{ irc_channel }} server={{ irc_server}} msg="Done with {{ inventory_hostname }}"
delegate_to: 127.0.0.1
### signal that we are done
- hosts: localhost
tasks:
- irc:
channel={{ irc_channel }} server={{ irc_server }} msg="All done!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment