TASK [init_zabbix_server : Init Zabbix Server Postgres Database] ***
fatal: [192.168.56.110]: FAILED! => {"changed": true, "cmd": "/bin/bash -c \"zcat /usr/share/doc/zabbix-server-pgsql*/create.sql.gz | psql -U zabbix -h 192.168.56.110 zabbix\"", "delta": "0:00:00.116910", "end": "2018-08-31 08:16:48.232396", "msg": "non-zero return code", "rc": 2, "start": "2018-08-31 08:16:48.115486", "stdout": "psql: could not connect to server: Connection refused\r\n\tIs the server running on host \"192.168.56.110\" and accepting\r\n\tTCP/IP connections on port 5432?\r\n\r\ngzip: stdout: Broken pipe", "stdout_lines": ["psql: could not connect to server: Connection refused", "\tIs the server running on host \"192.168.56.110\" and accepting", "\tTCP/IP connections on port 5432?", "", "gzip: stdout: Broken pipe"]}
PLAY RECAP *****
192.168.56.110 : ok=10 changed=0 unreachable=0 failed=1
Hi, I am facing an issue while running init_zabbix_server.yml, could you please help me here. Below is the error:
TASK [init_zabbix_server : Install python expect] ** ok: [192.168.56.110]
TASK [init_zabbix_server : Init Zabbix Server Postgres Database] *** fatal: [192.168.56.110]: FAILED! => {"changed": true, "cmd": "/bin/bash -c \"zcat /usr/share/doc/zabbix-server-pgsql*/create.sql.gz | psql -U zabbix -h 192.168.56.110 zabbix\"", "delta": "0:00:00.116910", "end": "2018-08-31 08:16:48.232396", "msg": "non-zero return code", "rc": 2, "start": "2018-08-31 08:16:48.115486", "stdout": "psql: could not connect to server: Connection refused\r\n\tIs the server running on host \"192.168.56.110\" and accepting\r\n\tTCP/IP connections on port 5432?\r\n\r\ngzip: stdout: Broken pipe", "stdout_lines": ["psql: could not connect to server: Connection refused", "\tIs the server running on host \"192.168.56.110\" and accepting", "\tTCP/IP connections on port 5432?", "", "gzip: stdout: Broken pipe"]}
PLAY RECAP ***** 192.168.56.110 : ok=10 changed=0 unreachable=0 failed=1