Hi, You can use
- meta: flush_handlers within your playbook, all pending handlers will be executed. You can then go on with you playbook The doc also state that: "Roles are described later on. It’s worthwhile to point out that handlers are automatically processed between ‘pre_tasks’, ‘roles’, ‘tasks’, and ‘post_tasks’ " http://docs.ansible.com/playbooks_intro.html#handlers-running-operations-on-change So, if you need to run some tasks after you handlers have been fired, you can use a “post_tasks” section at the end of you playbook. Cheers, Fred > Hello, > > In the following paragraph > http://docs.ansible.com/playbooks_best_practices.html#task-and-handler-organization-for-a-role > it says: > > "...handlers are only fired when certain tasks report changes, and are run at > the end of each play" > > Is it possible to run handlers directly instead of the end of each play? If > not, is it possible to run a task after a handler has been run? > > Thank you for your help? > > -- > You received this message because you are subscribed to the Google Groups > "Ansible Project" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/cfbd5901-3325-4484-8a36-a67191999f10%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/150402E1-16A1-4248-A4E7-A88514007D3D%40never-mind.ch. For more options, visit https://groups.google.com/d/optout.
