Reputation: 1526
Is there a way to directly run handler by ansible-playbook
?
For example, i have handler restart service
in my role and sometimes i want just trigger it directly without deploying whole app.
Upvotes: 10
Views: 14720
Reputation: 13694
There are a number of options answered in a similar post on ServerFault. In summary:
Options for triggering a particular handler:
command
to trigger itdebug
with changed_when: true
to trigger itOptions for triggering all handlers:
--force-handlers
meta: flush_handlers
taskOptions for re-architecting:
Upvotes: 14