Hi I want to fire handler with condition. for example, when change httpd.conf, i want to restart apache on staging, bun not want on production.
what should i do? ``` inventory/staging httpd_restart=true inventory/production httpd_restart=false tasks: # i want to fire when inventory is staging # but not fire when inventory is production - copy: src=httpd.conf dest=/etc/httpd/httpd.conf handler: - service name=httpd state=restart ``` thanks. -- 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/93b8dbaf-0c77-456b-9b96-37f99a1caf1b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
