Skip to content

Instantly share code, notes, and snippets.

@resmo
Created April 18, 2016 20:02
Show Gist options
  • Select an option

  • Save resmo/c66725267906d6a869ddab69a99bdda4 to your computer and use it in GitHub Desktop.

Select an option

Save resmo/c66725267906d6a869ddab69a99bdda4 to your computer and use it in GitHub Desktop.
- hosts: localhost
gather_facts: no
tasks:
- name: copy an ssl cert
shell: echo cert has been changed
notify:
- hosts: localhost
gather_facts: no
handlers:
- name: service restart one
shell: echo service one restarted
subscribe: copy an ssl cert
- name: service restart two
shell: echo service one restarted
subscribe: copy an ssl cert
- name: service restart three
shell: echo service one restarted
subscribe: copy an ssl cert
- hosts: localhost
gather_facts: no
handlers:
- name: service restart two
shell: echo service two restarted
subscribe: copy an ssl cert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment