[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.004362", "end": "2017-03-20 12:01:43.959441", "failed": true, "rc": 2, "start": "2017-03-20 12:01:43.955079", "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]
TASK [yum_php : Install libselinux-python package] *****************************
ok: [192.168.31.110]
TASK [yum_php : Check whether yum.repo file exist] *****************************
changed: [192.168.31.110]
TASK [yum_php : Copy yum.repo file] ********************************************
skipping: [192.168.31.110]
TASK [yum_php : Rebuild the yum cache] *****************************************
skipping: [192.168.31.110]
TASK [yum_php : Check whether nginx users exist] *******************************
fatal: [192.168.31.110]: FAILED! => {"changed": true, "cmd": "id nginx", "delta": "0:00:00.005955", "end": "2017-03-20 12:14:49.015479", "failed": true, "rc": 1, "start": "2017-03-20 12:14:49.009524", "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'})
TASK [source_nginx : disabled iptables] ****************************************
changed: [192.168.31.110]
TASK [source_nginx : Set the selinux value to Permissive] **********************
changed: [192.168.31.110]
TASK [source_nginx : Create download directory] ********************************
changed: [192.168.31.110]
TASK [source_nginx : Install the some tools] ***********************************
changed: [192.168.31.110] => (item={u'name': u'unzip'})
changed: [192.168.31.110] => (item={u'name': u'zip'})
ok: [192.168.31.110] => (item={u'name': u'tar'})
ok: [192.168.31.110] => (item={u'name': u'libselinux-python'})
TASK [source_nginx : download some source packages] ****************************
changed: [192.168.31.110] => (item={u'url': u'https://ftp.pcre.org/pub/pcre/pcre-8.40.zip', u'validate_certs': u'no'})
changed: [192.168.31.110] => (item={u'url': u'http://nginx.org/download/nginx-1.11.7.tar.gz'})
TASK [source_nginx : unarchive some source packages] ***************************
changed: [192.168.31.110] => (item={u'src': u'/tmp/download/nginx-1.11.7.tar.gz', u'remote_src': u'yes'})
changed: [192.168.31.110] => (item={u'src': u'/tmp/download/pcre-8.40.zip', u'remote_src': u'yes'})
changed: [192.168.31.110] => (item={u'src': u'files/zlib-1.2.11.tar.gz'})
changed: [192.168.31.110] => (item={u'src': u'files/openssl-1.1.0e.tar.gz'})
changed: [192.168.31.110] => (item={u'src': u'files/gperftools-2.0.zip'})
changed: [192.168.31.110] => (item={u'src': u'files/echo-nginx-module-0.59.tar.gz'})
changed: [192.168.31.110] => (item={u'src': u'files/nginx-upstream-jvm-route-nginx1.11.7.zip'})
changed: [192.168.31.110] => (item={u'src': u'files/ngx_cache_purge-2.3.tar.gz'})
TASK [source_nginx : Check whether nginx users exist] **************************
changed: [192.168.31.110]
TASK [source_nginx : The nginx user does not exist, so we need to create it.[The nginx user's password is 123456]] ***
skipping: [192.168.31.110]
TASK [source_nginx : Install the pcre-8.40 source package] *********************
changed: [192.168.31.110]
TASK [source_nginx : Install the zlib-1.2.11 source package] *******************
changed: [192.168.31.110]
TASK [source_nginx : Install the openssl-1.1.0e source package] ****************
changed: [192.168.31.110]
TASK [source_nginx : Install the some devel packages] **************************
ok: [192.168.31.110] => (item={u'rpm': u'openssl-devel'})
changed: [192.168.31.110] => (item={u'rpm': u'pcre-devel'})
ok: [192.168.31.110] => (item={u'rpm': u'zlib-devel'})
ok: [192.168.31.110] => (item={u'rpm': u'gcc'})
ok: [192.168.31.110] => (item={u'rpm': u'gcc-c++'})
ok: [192.168.31.110] => (item={u'rpm': u'make'})
ok: [192.168.31.110] => (item={u'rpm': u'perl'})
changed: [192.168.31.110] => (item={u'rpm': u'perl-devel'})
changed: [192.168.31.110] => (item={u'rpm': u'perl-ExtUtils-Embed'})
TASK [source_nginx : Install the gperftools-2.0 source package] ****************
changed: [192.168.31.110]
TASK [source_nginx : Install patch package] ************************************
changed: [192.168.31.110]
TASK [source_nginx : Play nginx-upstream-jvm-route patche] *********************
changed: [192.168.31.110]
TASK [source_nginx : Install the Nginx package] ********************************
changed: [192.168.31.110]
TASK [source_nginx : Create some directory] ************************************
changed: [192.168.31.110] => (item={u'path': u'/tmp/tcmalloc', u'mode': u'0777'})
changed: [192.168.31.110] => (item={u'path': u'/var/proxy_cache/temp'})
changed: [192.168.31.110] => (item={u'path': u'/var/proxy_cache/cache'})
changed: [192.168.31.110] => (item={u'path': u'/var/log/nginx'})
changed: [192.168.31.110] => (item={u'path': u'/usr/local/nginx-1.11.7/conf/vhosts'})
TASK [source_nginx : set nginx parameter] **************************************
ok: [192.168.31.110]
TASK [source_nginx : Copy same files] ******************************************
changed: [192.168.31.110] => (item={u'dest': u'/etc/init.d/nginx', u'src': u'templates/etc_init.d_nginx.txt', u'mode': u'0755'})
changed: [192.168.31.110] => (item={u'dest': u'/usr/local/nginx-1.11.7/conf/nginx.conf', u'src': u'templates/nginx.conf.j2'})
changed: [192.168.31.110] => (item={u'dest': u'/usr/local/nginx-1.11.7/conf/vhosts/proxy.conf', u'src': u'templates/proxy.conf.j2'})
changed: [192.168.31.110] => (item={u'dest': u'/usr/local/nginx-1.11.7/conf/vhosts/comm.conf', u'src': u'templates/comm.conf.j2'})
changed: [192.168.31.110] => (item={u'dest': u'/usr/local/nginx-1.11.7/conf/vhosts/static.conf', u'src': u'templates/static.conf.j2'})
changed: [192.168.31.110] => (item={u'dest': u'/usr/local/nginx-1.11.7/conf/vhosts/fastcgi.conf', u'src': u'templates/fastcgi.conf.j2'})
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]
RUNNING HANDLER [yum_php : restart php-fpm] ************************************
changed: [192.168.31.110]
RUNNING HANDLER [source_nginx : restart nginx] *********************************
changed: [192.168.31.110]
PLAY RECAP *********************************************************************
192.168.31.110 : ok=36 changed=33 unreachable=0 failed=0
[root@Ansible ~]