root@Ansible ~]
PLAY [test_hosts] **************************************************************
TASK [setup] *******************************************************************
ok: [192.168.31.110]
TASK [yum_php : Install libselinux-python package] *****************************
changed: [192.168.31.110]
TASK [yum_php : 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.004034", "end": "2017-03-20 10:01:53.732814", "failed": true, "rc": 2, "start": "2017-03-20 10:01:53.728780", "stderr": "ls: cannot access /etc/yum.repos.d/yum.repo: No such file or directory", "stdout": "", "stdout_lines": [], "warnings": []}
...ignoring
TASK [yum_php : Copy yum.repo file] ********************************************
changed: [192.168.31.110]
TASK [yum_php : Rebuild the yum cache] *****************************************
changed: [192.168.31.110]
[WARNING]: Consider using yum module rather than running yum
TASK [yum_php : Check whether nginx users exist] *******************************
fatal: [192.168.31.110]: FAILED! => {"changed": true, "cmd": "id nginx", "delta": "0:00:00.004049", "end": "2017-03-20 10:06:02.226964", "failed": true, "rc": 1, "start": "2017-03-20 10:06:02.222915", "stderr": "id: nginx: No such user", "stdout": "", "stdout_lines": [], "warnings": []}
...ignoring
TASK [yum_php : The nginx user does not exist, so we need to create it.[The nginx user's password is 123456]] ***
changed: [192.168.31.110]
TASK [yum_php : Install PHP packages] ******************************************
ok: [192.168.31.110] => (item={u'state': u'absent', u'name': u'php*'})
changed: [192.168.31.110] => (item={u'name': u'php70w'})
changed: [192.168.31.110] => (item={u'name': u'php70w-gd'})
ok: [192.168.31.110] => (item={u'name': u'libjpeg*'})
changed: [192.168.31.110] => (item={u'name': u'php70w-imap'})
changed: [192.168.31.110] => (item={u'name': u'php70w-ldap'})
changed: [192.168.31.110] => (item={u'name': u'php70w-odbc'})
changed: [192.168.31.110] => (item={u'name': u'php70w-pear'})
ok: [192.168.31.110] => (item={u'name': u'php70w-xml'})
changed: [192.168.31.110] => (item={u'name': u'php70w-xmlrpc'})
changed: [192.168.31.110] => (item={u'name': u'php70w-mbstring'})
changed: [192.168.31.110] => (item={u'name': u'php70w-mcrypt'})
changed: [192.168.31.110] => (item={u'name': u'php70w-bcmath'})
ok: [192.168.31.110] => (item={u'name': u'libmcrypt'})
changed: [192.168.31.110] => (item={u'name': u'libmcrypt-devel'})
changed: [192.168.31.110] => (item={u'name': u'php70w-fpm'})
ok: [192.168.31.110] => (item={u'name': u'php70w-cli'})
ok: [192.168.31.110] => (item={u'name': u'php70w-pdo'})
changed: [192.168.31.110] => (item={u'name': u'php70w-tidy'})
changed: [192.168.31.110] => (item={u'name': u'php70w-mysql'})
TASK [yum_php : Configure PHP] *************************************************
changed: [192.168.31.110]
TASK [yum_php : Modify file permissions] ***************************************
changed: [192.168.31.110] => (item={u'path': u'/etc/httpd/conf.d/php.conf', u'state': u'file'})
changed: [192.168.31.110] => (item={u'path': u'/var/lib/php/session'})
changed: [192.168.31.110] => (item={u'path': u'/var/lib/php/wsdlcache'})
RUNNING HANDLER [yum_php : restart php-fpm] ************************************
changed: [192.168.31.110]
PLAY RECAP *********************************************************************
192.168.31.110 : ok=11 changed=10 unreachable=0 failed=0
[root@Ansible ~]#