https://github.com/zerwes/ansible-role-flushhandlers
ansible role to flush and execute pending handlers
https://github.com/zerwes/ansible-role-flushhandlers
Last synced: 5 months ago
JSON representation
ansible role to flush and execute pending handlers
- Host: GitHub
- URL: https://github.com/zerwes/ansible-role-flushhandlers
- Owner: zerwes
- License: gpl-3.0
- Created: 2024-11-18T07:05:08.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-29T07:21:40.000Z (over 1 year ago)
- Last Synced: 2025-01-23T06:46:02.822Z (over 1 year ago)
- Size: 21.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](http://www.gnu.org/licenses/gpl-3.0)
# ansible-role-flushhandlers
ansible role to flush and execute pending handlers
as inbetween roles you can not insert tasks, we need a small and simple role for the task
see:
* https://github.com/zerwes/ansible-ensure-service-running
* https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_handlers.html#controlling-when-handlers-run
## howto
sample playbook
```yaml
- name: playday
hosts: playground
roles:
- role: ansible-role-play
tags:
- play
- role: flushhandlers
tags: always
- role: ansible-role-eat
tags:
- eat
- role: flushhandlers # sorry for the ambiguity :)
tags: always
- role: ansible-role-sleep
tags:
- sleep
```