Hey, Make last 3 tasks as below.

Make changes in green and give a try.

Secondly Is there any specific reason why become: yes is used in every task
? Why not its defined once at play level ?

- name: systemd deamon-reload
systemd:
state: restarted
daemon_reload: yes

*- name: systemd - enable mysql.service in systemd*
*service:*
*name: mysql.service*
*enabled: yes*


- name: systemd - start mysql.service via systemd
*service:*
name: mysql.service
state: started

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAEMGyLLunFTZnZHSAhncD9vyb0jhB_r3B%2BQCJDz%3D_8X1QFYi0w%40mail.gmail.com.

Reply via email to