[root@Ansible ~]
PLAY [test_hosts] **************************************************************
TASK [setup] *******************************************************************
ok: [192.168.31.110]
TASK [source_zabbix_server : disabled iptables] ********************************
ok: [192.168.31.110]
TASK [source_zabbix_server : Set the selinux value to Permissive] **************
changed: [192.168.31.110]
TASK [source_zabbix_server : Install libselinux-python package] ****************
ok: [192.168.31.110]
TASK [source_zabbix_server : Check whether yum.repo file exist] ****************
changed: [192.168.31.110]
TASK [source_zabbix_server : Copy yum.repo file] *******************************
skipping: [192.168.31.110]
TASK [source_zabbix_server : Rebuild the yum cache] ****************************
skipping: [192.168.31.110]
TASK [source_zabbix_server : Install same devel packages] **********************
changed: [192.168.31.110] => (item={u'name': u'net-snmp'})
changed: [192.168.31.110] => (item={u'name': u'net-snmp-devel'})
changed: [192.168.31.110] => (item={u'name': u'libxml2-devel'})
changed: [192.168.31.110] => (item={u'name': u'libcurl-devel'})
changed: [192.168.31.110] => (item={u'name': u'java-devel'})
ok: [192.168.31.110] => (item={u'name': u'unixODBC'})
changed: [192.168.31.110] => (item={u'name': u'unixODBC-devel'})
changed: [192.168.31.110] => (item={u'name': u'OpenIPMI-devel'})
ok: [192.168.31.110] => (item={u'name': u'curl-devel'})
changed: [192.168.31.110] => (item={u'name': u'libssh2-devel'})
changed: [192.168.31.110] => (item={u'name': u'MySQL-python'})
TASK [source_zabbix_server : Check whether jdk-7u79-linux-x64.tar.gz file exist] ***
fatal: [192.168.31.110]: FAILED! => {"changed": true, "cmd": "ls /tmp/jdk-7u79-linux-x64.tar.gz", "delta": "0:00:00.006056", "end": "2017-03-21 10:42:08.254025", "failed": true, "rc": 2, "start": "2017-03-21 10:42:08.247969", "stderr": "ls: cannot access /tmp/jdk-7u79-linux-x64.tar.gz: No such file or directory", "stdout": "", "stdout_lines": [], "warnings": []}
...ignoring
TASK [source_zabbix_server : download jdk-7u79 source package] *****************
changed: [192.168.31.110]
TASK [source_zabbix_server : Check whether '/usr/local/jdk1.7.0_79' file exist]
fatal: [192.168.31.110]: FAILED! => {"changed": true, "cmd": "ls /usr/local/jdk1.7.0_79", "delta": "0:00:00.004081", "end": "2017-03-21 10:45:48.414682", "failed": true, "rc": 2, "start": "2017-03-21 10:45:48.410601", "stderr": "ls: cannot access /usr/local/jdk1.7.0_79: No such file or directory", "stdout": "", "stdout_lines": [], "warnings": []}
...ignoring
TASK [source_zabbix_server : unarchive jdk-7u79 source package] ****************
changed: [192.168.31.110]
TASK [source_zabbix_server : Configure java variable] **************************
changed: [192.168.31.110]
TASK [source_zabbix_server : unarchive zabbix-3.2.4 source package] ************
changed: [192.168.31.110]
TASK [source_zabbix_server : Install zabbix source package] ********************
changed: [192.168.31.110]
TASK [source_zabbix_server : Check whether zabbix users exist] *****************
fatal: [192.168.31.110]: FAILED! => {"changed": true, "cmd": "id zabbix", "delta": "0:00:00.004139", "end": "2017-03-21 10:46:58.885950", "failed": true, "rc": 1, "start": "2017-03-21 10:46:58.881811", "stderr": "id: zabbix: No such user", "stdout": "", "stdout_lines": [], "warnings": []}
...ignoring
TASK [source_zabbix_server : The zabbix user does not exist, so we need to create it.] ***
changed: [192.168.31.110]
TASK [source_zabbix_server : Replace some files] *******************************
changed: [192.168.31.110] => (item={u'dest': u'/etc/php.ini', u'line': u'max_execution_time = 300', u'reg': u'^max_execution_time'})
changed: [192.168.31.110] => (item={u'dest': u'/etc/php.ini', u'line': u'post_max_size = 16M', u'reg': u'^post_max_size'})
changed: [192.168.31.110] => (item={u'dest': u'/etc/php.ini', u'line': u'max_input_time = 300', u'reg': u'^max_input_time'})
changed: [192.168.31.110] => (item={u'dest': u'/etc/php.ini', u'line': u'date.timezone = "Asia/Shanghai"', u'reg': u'^;date.timezone'})
ok: [192.168.31.110] => (item={u'dest': u'/etc/php-fpm.conf', u'line': u'pid = /var/run/php-fpm/php-fpm.pid', u'reg': u'^;pid ='})
ok: [192.168.31.110] => (item={u'dest': u'/etc/php-fpm.d/www.conf', u'line': u'pm.min_spare_servers = 5', u'reg': u'^;pm.min_spare_servers'})
ok: [192.168.31.110] => (item={u'dest': u'/etc/php-fpm.d/www.conf', u'line': u'pm.max_spare_servers = 35', u'reg': u'^;pm.max_spare_servers'})
ok: [192.168.31.110] => (item={u'dest': u'/etc/php-fpm.d/www.conf', u'line': u'pm.start_servers = 5', u'reg': u'^;^pm.start_servers'})
TASK [source_zabbix_server : Copy authorization.sql file] **********************
changed: [192.168.31.110] => (item={u'name': u'files/authorization.sql'})
changed: [192.168.31.110] => (item={u'name': u'files/initialize.sql'})
TASK [source_zabbix_server : Set up mysql database authorization] **************
changed: [192.168.31.110]
TASK [source_zabbix_server : Authorize Zabbix users] ***************************
changed: [192.168.31.110]
TASK [source_zabbix_server : Initialize the zabbix database] *******************
changed: [192.168.31.110]
TASK [source_zabbix_server : Configure zabbix] *********************************
changed: [192.168.31.110]
TASK [source_zabbix_server : Copy zabbix configure] ****************************
changed: [192.168.31.110] => (item={u'dest': u'/usr/local/zabbix/etc/zabbix_server.conf', u'src': u'templates/zabbix_server.conf'})
changed: [192.168.31.110] => (item={u'dest': u'/usr/local/zabbix/etc/zabbix_agentd.conf', u'src': u'templates/zabbix_agentd.conf'})
TASK [source_zabbix_server : Create some directory] ****************************
changed: [192.168.31.110] => (item={u'path': u'/usr/local/nginx-1.11.7/html/zabbix'})
changed: [192.168.31.110] => (item={u'path': u'/var/log/zabbix'})
changed: [192.168.31.110] => (item={u'path': u'/var/log/nginx/zabbix'})
TASK [source_zabbix_server : Copy zabbix pages] ********************************
changed: [192.168.31.110]
TASK [source_zabbix_server : Modify file permissions] **************************
changed: [192.168.31.110]
TASK [source_zabbix_server : Command Links] ************************************
changed: [192.168.31.110] => (item={u'dest': u'/usr/local/sbin/zabbix_server', u'src': u'/usr/local/zabbix/sbin/zabbix_server'})
changed: [192.168.31.110] => (item={u'dest': u'/usr/local/sbin/zabbix_agentd', u'src': u'/usr/local/zabbix/sbin/zabbix_agentd'})
TASK [source_zabbix_server : touch zabbix log file] ****************************
changed: [192.168.31.110] => (item={u'path': u'/var/log/zabbix/zabbix_server.log'})
changed: [192.168.31.110] => (item={u'path': u'/var/log/zabbix/zabbix_agentd.log'})
TASK [source_zabbix_server : Configure nginx for Zabbix] ***********************
changed: [192.168.31.110]
TASK [source_zabbix_server : Check whether fastcgi.conf file exist] ************
changed: [192.168.31.110]
TASK [source_zabbix_server : Copy fastcgi.conf file] ***************************
skipping: [192.168.31.110]
TASK [source_zabbix_server : Add zabbix to chkconfig] **************************
changed: [192.168.31.110]
RUNNING HANDLER [source_zabbix_server : restart zabbix server] *****************
changed: [192.168.31.110] => (item={u'name': u'zabbix_server'})
changed: [192.168.31.110] => (item={u'name': u'zabbix_agentd'})
changed: [192.168.31.110] => (item={u'name': u'php-fpm'})
changed: [192.168.31.110] => (item={u'name': u'nginx'})
PLAY RECAP *********************************************************************
192.168.31.110 : ok=31 changed=28 unreachable=0 failed=0
[root@Ansible ~]