The given playbook attempts to start mysql service on all_servers.
- name: Execute a script on all web server nodes hosts: all_servers tasks: - service: name=mysql state=started
Use the when condition to run this task if the host (ansible_host) is the database server. Refer to the inventory file to identify the name of the database server
Note: You can get the answer for this exercise by clicking