ansible-role-wireguard icon indicating copy to clipboard operation
ansible-role-wireguard copied to clipboard

Flush handlers at the end of the role

Open abelfodil opened this issue 4 years ago • 1 comments

This ensures the syncconf is called at the end of the role before moving on, otherwise it's only called at the end of the play.

The code would look like:

- name: Force all notified handlers to run
  meta: flush_handlers

abelfodil avatar Sep 30 '21 22:09 abelfodil

I'm thinking about it. But it'd be definitely optional as it'd change the current behavior of the role. So adding a variable like wireguard_flush_handlers: true|false might be an option.

githubixx avatar Oct 06 '21 19:10 githubixx