Sharing handler across multiple plays

21 views
Skip to first unread message

Anand Buddhdev

unread,
Feb 8, 2016, 6:52:50 PM2/8/16
to Ansible Project
Hello Ansible users and dev,

Is there any way to define a handler once, and use it in roles in multiple plays in a playbook? For example, if I have:

- hosts: set1
  roles:
    - role1

- hosts: set2
  roles:
    - role2

How can I define a handler once, to use in both roles?

Regards,
Anand
Reply all
Reply to author
Forward
0 new messages