How do I write an Ansible handler with multiple tasks?
There is proper solution to this problem as of Ansible 2.2. handlers can also “listen” to generic topics, and tasks can notify those topics as follows: handlers: – name: restart memcached service: name=memcached state=restarted listen: “restart web services” – name: restart apache service: name=apache state=restarted listen: “restart web services” tasks: – name: restart everything command: … Read more