An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

[![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](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
```