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

What is a handler? [closed]

A handler is a routine/function/method which is specialized in a certain type of data or focused on certain special tasks. Examples: Event handler – Receives and digests events and signals from the surrounding system (e.g. OS or GUI). Memory handler – Performs certain special tasks on memory. File input handler – A function receiving file … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)