[root@Ansible ~]
PLAY [test_hosts] **************************************************************
TASK [setup] *******************************************************************
ok: [192.168.31.110]
TASK [yum_mysql : Install libselinux-python package] ***************************
changed: [192.168.31.110]
TASK [yum_mysql : Check whether yum.repo file exist] ***************************
fatal: [192.168.31.110]: FAILED! => {"changed": true, "cmd": "ls /etc/yum.repos.d/yum.repo", "delta": "0:00:00.004198", "end": "2017-03-19 21:22:56.861926", "failed": true, "rc": 2, "start": "2017-03-19 21:22:56.857728", "stderr": "ls: cannot access /etc/yum.repos.d/yum.repo: No such file or directory", "stdout": "", "stdout_lines": [], "warnings": []}
...ignoring
TASK [yum_mysql : Copy yum.repo file] ******************************************
changed: [192.168.31.110]
TASK [yum_mysql : Rebuild the yum cache] ***************************************
changed: [192.168.31.110]
[WARNING]: Consider using yum module rather than running yum
TASK [yum_mysql : Install Mysql Packages] **************************************
changed: [192.168.31.110] => (item={u'state': u'absent', u'name': u'mysql*'})
changed: [192.168.31.110] => (item={u'name': u'mysql.x86_64'})
changed: [192.168.31.110] => (item={u'name': u'mysql-devel.x86_64'})
changed: [192.168.31.110] => (item={u'name': u'mysql-server.x86_64'})
TASK [yum_mysql : Configure Mysql file] ****************************************
changed: [192.168.31.110]
RUNNING HANDLER [yum_mysql : restart mysql] ************************************
changed: [192.168.31.110]
RUNNING HANDLER [yum_mysql : Set the mysql database password] ******************
changed: [192.168.31.110]
PLAY RECAP *********************************************************************
192.168.31.110 : ok=9 changed=8 unreachable=0 failed=0
[root@Ansible ~]