Calling multiple handlers -- more graceful way?

10 views
Skip to first unread message

John Harmon

unread,
Aug 30, 2017, 2:42:39 PM8/30/17
to Ansible Project
I wish to use a handler called Networking to call multiple, other handlers.  I am currently doing it this way, but I am wondering if there was a more graceful way?

- name: Networking
  command
: echo
  changed_when
: true
  notify
:
   
- 6 network restart
   
- 7 network restart
   
- 7 NetworkManager restart


ie (the following wont work, but conveys my thought):

- name: Networking
  changed_when
: true
  notify
:
   
- 6 network restart
   
- 7 network restart
   
- 7 NetworkManager restart


Reply all
Reply to author
Forward
0 new messages