Skip to content

Instantly share code, notes, and snippets.

@svx
Created March 22, 2014 12:16
Show Gist options
  • Save svx/9706283 to your computer and use it in GitHub Desktop.
Save svx/9706283 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