Closed ghost closed 1 year ago
Would suggest you look at #970 and see if anything in there helps out.
@pyrodie18
Would suggest you look at #970 and see if anything in there helps out.
Thx for this hint, but I do not think this has something to do with the path for one simple reason.
These modules below are working for me without taking care of the path. I just uncoment this argument in my YAML. My Zabbix Docker environment has been configured with ipvlan L3, so it act like a common host, without all this port exposing stuff. The Zabbix Server Container is listening on origin HTTP/HTTPS ports 80 and 443. There is no additional path (https://zabix.domain.com/something).
Just deploying the Docker Compose Local file, set a route for the new Zabbix Docker Network towards the Docker host and changing the listener port in nginx.conf and nginx_ssl.conf files to port 80 and 443 and that's it.
Modules which are working in my Zabbix Docker Env.
Please execute
curl -k -X POST -H 'Content-Type: application/json-rpc' -d '{"jsonrpc":"2.0","method":"apiinfo.version","params":{},"id":1}' https://<rv_zabbix_host>/api_jsonrpc.php
@BGmot
(ansiblelatest) MyMac=> curl -k -X POST -H 'Content-Type: application/json-rpc' -d '{"jsonrpc":"2.0","method":"apiinfo.version","params":{},"id":1}' https://zabbix.lan.josoko.ch/api_jsonrpc.php {"jsonrpc":"2.0","result":"6.0.23","id":1}%
This is weird. Try turning on logging in ansible.cfg
[defaults]
log_path=/tmp/ansible.log
[persistent_connection]
log_messages = True
Anything interesting there when executing the playbook?
Hello @BGmot
Sure. Changed some personal values in the log. User, Mac's hostname and passwords and added some additional information into the log. On top you will see the modules which are working. In the second part you will see the failed try for the task "Create HTTP User" which has been uncommented in the YAML for the same playbook.
The interesting thing is the part at the end "connection issues" which happens with the User Module only.
`2023-11-09 10:15:30,967 p=40573 u=MyUser n=ansible | PLAY [localhost] ***** 2023-11-09 10:15:30,985 p=40573 u=MyUser n=ansible | TASK [Gathering Facts] *** 2023-11-09 10:15:32,101 p=40573 u=MyUser n=ansible | ok: [localhost] 2023-11-09 10:15:32,122 p=40573 u=MyUser n=ansible | TASK [ans.linux.sys_linux_docker_zabbixconfig : Set credentials to access Zabbix Server API] ***** 2023-11-09 10:15:32,226 p=40573 u=MyUser n=ansible | ok: [localhost] 2023-11-09 10:15:32,233 p=40573 u=MyUser n=ansible | TASK [ans.linux.sys_linux_docker_zabbixconfig : Create Host Groups] ** 2023-11-09 10:15:33,539 p=40573 u=MyUser n=ansible | platform_type is set to community.zabbix.zabbix 2023-11-09 10:15:34,627 p=40573 u=MyUser n=ansible | ok: [localhost] 2023-11-09 10:15:34,634 p=40573 u=MyUser n=ansible | TASK [ans.linux.sys_linux_docker_zabbixconfig : Config host Zabbix Server] *** 2023-11-09 10:15:37,180 p=40573 u=MyUser n=ansible | ok: [localhost] 2023-11-09 10:15:37,187 p=40573 u=MyUser n=ansible | TASK [ans.linux.sys_linux_docker_zabbixconfig : Create Host Zabbix Mon Server] *** 2023-11-09 10:15:39,484 p=40573 u=MyUser n=ansible | ok: [localhost] 2023-11-09 10:15:39,656 p=40573 u=MyUser n=ansible | PLAY RECAP *** 2023-11-09 10:15:39,656 p=40573 u=MyUser n=ansible | localhost : ok=5 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 2023-11-09 10:15:39,757 p=40618 u=MyUser n=ansible |
shutdown complete 2023-11-09 10:18:51,489 p=40901 u=MyUser n=ansible | Starting galaxy collection install process 2023-11-09 10:18:51,549 p=40901 u=MyUser n=ansible | Process install dependency map 2023-11-09 10:18:51,549 p=40901 u=MyUser n=ansible | 2023-11-09 10:18:51,649 p=40901 u=MyUser n=ansible | / 2023-11-09 10:18:51,754 p=40901 u=MyUser n=ansible | - 2023-11-09 10:18:51,857 p=40901 u=MyUser n=ansible | \ 2023-11-09 10:18:51,960 p=40901 u=MyUser n=ansible | 2023-11-09 10:18:52,061 p=40901 u=MyUser n=ansible | / 2023-11-09 10:18:52,162 p=40901 u=MyUser n=ansible | - 2023-11-09 10:18:52,267 p=40901 u=MyUser n=ansible | \ 2023-11-09 10:18:52,369 p=40901 u=MyUser n=ansible | 2023-11-09 10:18:52,474 p=40901 u=MyUser n=ansible | / 2023-11-09 10:18:52,575 p=40901 u=MyUser n=ansible | - 2023-11-09 10:18:52,680 p=40901 u=MyUser n=ansible | \ 2023-11-09 10:18:52,781 p=40901 u=MyUser n=ansible | 2023-11-09 10:18:52,886 p=40901 u=MyUser n=ansible | / 2023-11-09 10:18:52,990 p=40901 u=MyUser n=ansible | - 2023-11-09 10:18:53,092 p=40901 u=MyUser n=ansible | \ 2023-11-09 10:18:53,193 p=40901 u=MyUser n=ansible | 2023-11-09 10:18:53,293 p=40901 u=MyUser n=ansible | / 2023-11-09 10:18:53,397 p=40901 u=MyUser n=ansible | - 2023-11-09 10:18:53,501 p=40901 u=MyUser n=ansible | \ 2023-11-09 10:18:53,605 p=40901 u=MyUser n=ansible | 2023-11-09 10:18:53,706 p=40901 u=MyUser n=ansible | / 2023-11-09 10:18:53,808 p=40901 u=MyUser n=ansible | - 2023-11-09 10:18:53,908 p=40901 u=MyUser n=ansible | \ 2023-11-09 10:18:54,012 p=40901 u=MyUser n=ansible | 2023-11-09 10:18:54,113 p=40901 u=MyUser n=ansible | / 2023-11-09 10:18:54,214 p=40901 u=MyUser n=ansible | - 2023-11-09 10:18:54,320 p=40901 u=MyUser n=ansible | \ 2023-11-09 10:18:54,423 p=40901 u=MyUser n=ansible | 2023-11-09 10:18:54,527 p=40901 u=MyUser n=ansible | Starting collection install process 2023-11-09 10:18:54,528 p=40901 u=MyUser n=ansible | 2023-11-09 10:18:54,628 p=40901 u=MyUser n=ansible | Installing 'ans.linux:1.2.3' to '/Users/MyUser/MyMac/git/ans.play/ansible-galaxy/collections/ansible_collections/ans/linux' 2023-11-09 10:18:54,628 p=40901 u=MyUser n=ansible | / 2023-11-09 10:18:54,734 p=40901 u=MyUser n=ansible | Created collection for ans.linux:1.2.3 at /Users/MyUser/MyMac/git/ans.play/ansible-galaxy/collections/ansible_collections/ans/linux 2023-11-09 10:18:54,734 p=40901 u=MyUser n=ansible | ans.linux:1.2.3 was installed successfully 2023-11-09 10:19:08,385 p=40951 u=MyUser n=ansible | # /Users/MyUser/MyMac/git/ans.play/ansible-galaxy/collections/ansible_collections Collection Version |
---|
2023-11-09 10:19:08,386 p=40951 u=MyUser n=ansible | ans.linux 1.2.3 2023-11-09 10:19:08,386 p=40951 u=MyUser n=ansible |
ansible.netcommon 5.3.0 2023-11-09 10:19:08,386 p=40951 u=MyUser n=ansible |
ansible.posix 1.5.4 2023-11-09 10:19:08,386 p=40951 u=MyUser n=ansible |
ansible.utils 2.11.0 2023-11-09 10:19:08,386 p=40951 u=MyUser n=ansible | ansible.windows 2.1.0 2023-11-09 10:19:08,386 p=40951 u=MyUser n=ansible |
community.docker 3.4.10 2023-11-09 10:19:08,386 p=40951 u=MyUser n=ansible | community.general 8.0.1 2023-11-09 10:19:08,386 p=40951 u=MyUser n=ansible |
community.mysql 3.8.0 2023-11-09 10:19:08,386 p=40951 u=MyUser n=ansible |
community.postgresql 3.2.0 2023-11-09 10:19:08,386 p=40951 u=MyUser n=ansible |
community.zabbix 2.1.0 2023-11-09 10:19:08,471 p=40951 u=MyUser n=ansible |
# /Users/MyUser/MyMac/venv/ansiblelatest/lib/python3.10/site-packages/ansible_collections Collection Version |
---|
2023-11-09 10:19:08,471 p=40951 u=MyUser n=ansible | amazon.aws 5.1.0 2023-11-09 10:19:08,471 p=40951 u=MyUser n=ansible |
ansible.netcommon 4.1.0 2023-11-09 10:19:08,471 p=40951 u=MyUser n=ansible |
ansible.posix 1.4.0 2023-11-09 10:19:08,471 p=40951 u=MyUser n=ansible |
ansible.utils 2.8.0 2023-11-09 10:19:08,471 p=40951 u=MyUser n=ansible |
ansible.windows 1.12.0 2023-11-09 10:19:08,471 p=40951 u=MyUser n=ansible | arista.eos 6.0.0 2023-11-09 10:19:08,471 p=40951 u=MyUser n=ansible |
awx.awx 21.10.0 2023-11-09 10:19:08,471 p=40951 u=MyUser n=ansible | azure.azcollection 1.14.0 2023-11-09 10:19:08,471 p=40951 u=MyUser n=ansible | check_point.mgmt 4.0.0 2023-11-09 10:19:08,472 p=40951 u=MyUser n=ansible |
chocolatey.chocolatey 1.3.1 2023-11-09 10:19:08,472 p=40951 u=MyUser n=ansible |
cisco.aci 2.3.0 2023-11-09 10:19:08,472 p=40951 u=MyUser n=ansible |
cisco.asa 4.0.0 2023-11-09 10:19:08,472 p=40951 u=MyUser n=ansible |
cisco.dnac 6.6.1 2023-11-09 10:19:08,472 p=40951 u=MyUser n=ansible |
cisco.intersight 1.0.22 2023-11-09 10:19:08,472 p=40951 u=MyUser n=ansible | cisco.ios 4.0.0 2023-11-09 10:19:08,472 p=40951 u=MyUser n=ansible |
cisco.iosxr 4.0.3 2023-11-09 10:19:08,472 p=40951 u=MyUser n=ansible |
cisco.ise 2.5.9 2023-11-09 10:19:08,472 p=40951 u=MyUser n=ansible |
cisco.meraki 2.13.0 2023-11-09 10:19:08,472 p=40951 u=MyUser n=ansible | cisco.mso 2.1.0 2023-11-09 10:19:08,472 p=40951 u=MyUser n=ansible |
cisco.nso 1.0.3 2023-11-09 10:19:08,472 p=40951 u=MyUser n=ansible |
cisco.nxos 4.0.1 2023-11-09 10:19:08,472 p=40951 u=MyUser n=ansible |
cisco.ucs 1.8.0 2023-11-09 10:19:08,472 p=40951 u=MyUser n=ansible |
cloud.common 2.1.2 2023-11-09 10:19:08,472 p=40951 u=MyUser n=ansible |
cloudscale_ch.cloud 2.2.3 2023-11-09 10:19:08,472 p=40951 u=MyUser n=ansible |
community.aws 5.0.0 2023-11-09 10:19:08,472 p=40951 u=MyUser n=ansible |
community.azure 2.0.0 2023-11-09 10:19:08,472 p=40951 u=MyUser n=ansible |
community.ciscosmb 1.0.5 2023-11-09 10:19:08,472 p=40951 u=MyUser n=ansible |
community.crypto 2.9.0 2023-11-09 10:19:08,472 p=40951 u=MyUser n=ansible |
community.digitalocean 1.22.0 2023-11-09 10:19:08,473 p=40951 u=MyUser n=ansible | community.dns 2.4.2 2023-11-09 10:19:08,473 p=40951 u=MyUser n=ansible |
community.docker 3.3.1 2023-11-09 10:19:08,473 p=40951 u=MyUser n=ansible |
community.fortios 1.0.0 2023-11-09 10:19:08,473 p=40951 u=MyUser n=ansible |
community.general 6.1.0 2023-11-09 10:19:08,473 p=40951 u=MyUser n=ansible |
community.google 1.0.0 2023-11-09 10:19:08,473 p=40951 u=MyUser n=ansible |
community.grafana 1.5.3 2023-11-09 10:19:08,473 p=40951 u=MyUser n=ansible |
community.hashi_vault 4.0.0 2023-11-09 10:19:08,473 p=40951 u=MyUser n=ansible |
community.hrobot 1.6.0 2023-11-09 10:19:08,473 p=40951 u=MyUser n=ansible |
community.libvirt 1.2.0 2023-11-09 10:19:08,473 p=40951 u=MyUser n=ansible |
community.mongodb 1.4.2 2023-11-09 10:19:08,473 p=40951 u=MyUser n=ansible |
community.mysql 3.5.1 2023-11-09 10:19:08,473 p=40951 u=MyUser n=ansible |
community.network 5.0.0 2023-11-09 10:19:08,473 p=40951 u=MyUser n=ansible |
community.okd 2.2.0 2023-11-09 10:19:08,473 p=40951 u=MyUser n=ansible |
community.postgresql 2.3.1 2023-11-09 10:19:08,473 p=40951 u=MyUser n=ansible |
community.proxysql 1.4.0 2023-11-09 10:19:08,473 p=40951 u=MyUser n=ansible |
community.rabbitmq 1.2.3 2023-11-09 10:19:08,473 p=40951 u=MyUser n=ansible |
community.routeros 2.5.0 2023-11-09 10:19:08,473 p=40951 u=MyUser n=ansible |
community.sap 1.0.0 2023-11-09 10:19:08,473 p=40951 u=MyUser n=ansible |
community.sap_libs 1.4.0 2023-11-09 10:19:08,473 p=40951 u=MyUser n=ansible |
community.skydive 1.0.0 2023-11-09 10:19:08,473 p=40951 u=MyUser n=ansible |
community.sops 1.5.0 2023-11-09 10:19:08,473 p=40951 u=MyUser n=ansible |
community.vmware 3.2.0 2023-11-09 10:19:08,474 p=40951 u=MyUser n=ansible |
community.windows 1.11.1 2023-11-09 10:19:08,474 p=40951 u=MyUser n=ansible | community.zabbix 1.9.0 2023-11-09 10:19:08,474 p=40951 u=MyUser n=ansible |
containers.podman 1.10.1 2023-11-09 10:19:08,474 p=40951 u=MyUser n=ansible | cyberark.conjur 1.2.0 2023-11-09 10:19:08,474 p=40951 u=MyUser n=ansible |
cyberark.pas 1.0.14 2023-11-09 10:19:08,474 p=40951 u=MyUser n=ansible | dellemc.enterprise_sonic 2.0.0 2023-11-09 10:19:08,474 p=40951 u=MyUser n=ansible |
dellemc.openmanage 6.3.0 2023-11-09 10:19:08,474 p=40951 u=MyUser n=ansible |
dellemc.os10 1.1.1 2023-11-09 10:19:08,474 p=40951 u=MyUser n=ansible |
dellemc.os6 1.0.7 2023-11-09 10:19:08,474 p=40951 u=MyUser n=ansible |
dellemc.os9 1.0.4 2023-11-09 10:19:08,474 p=40951 u=MyUser n=ansible |
f5networks.f5_modules 1.21.0 2023-11-09 10:19:08,474 p=40951 u=MyUser n=ansible | fortinet.fortimanager 2.1.7 2023-11-09 10:19:08,474 p=40951 u=MyUser n=ansible |
fortinet.fortios 2.2.1 2023-11-09 10:19:08,474 p=40951 u=MyUser n=ansible |
frr.frr 2.0.0 2023-11-09 10:19:08,474 p=40951 u=MyUser n=ansible |
gluster.gluster 1.0.2 2023-11-09 10:19:08,474 p=40951 u=MyUser n=ansible |
google.cloud 1.0.2 2023-11-09 10:19:08,474 p=40951 u=MyUser n=ansible |
grafana.grafana 1.1.0 2023-11-09 10:19:08,474 p=40951 u=MyUser n=ansible |
hetzner.hcloud 1.9.0 2023-11-09 10:19:08,474 p=40951 u=MyUser n=ansible |
hpe.nimble 1.1.4 2023-11-09 10:19:08,474 p=40951 u=MyUser n=ansible |
ibm.qradar 2.1.0 2023-11-09 10:19:08,474 p=40951 u=MyUser n=ansible |
ibm.spectrum_virtualize 1.10.0 2023-11-09 10:19:08,474 p=40951 u=MyUser n=ansible | infinidat.infinibox 1.3.12 2023-11-09 10:19:08,475 p=40951 u=MyUser n=ansible | infoblox.nios_modules 1.4.1 2023-11-09 10:19:08,475 p=40951 u=MyUser n=ansible |
inspur.ispim 1.2.0 2023-11-09 10:19:08,475 p=40951 u=MyUser n=ansible |
inspur.sm 2.3.0 2023-11-09 10:19:08,475 p=40951 u=MyUser n=ansible |
junipernetworks.junos 4.1.0 2023-11-09 10:19:08,475 p=40951 u=MyUser n=ansible |
kubernetes.core 2.3.2 2023-11-09 10:19:08,475 p=40951 u=MyUser n=ansible |
lowlydba.sqlserver 1.2.1 2023-11-09 10:19:08,475 p=40951 u=MyUser n=ansible |
mellanox.onyx 1.0.0 2023-11-09 10:19:08,475 p=40951 u=MyUser n=ansible |
netapp.aws 21.7.0 2023-11-09 10:19:08,475 p=40951 u=MyUser n=ansible | netapp.azure 21.10.0 2023-11-09 10:19:08,475 p=40951 u=MyUser n=ansible | netapp.cloudmanager 21.21.0 2023-11-09 10:19:08,475 p=40951 u=MyUser n=ansible | netapp.elementsw 21.7.0 2023-11-09 10:19:08,475 p=40951 u=MyUser n=ansible | netapp.ontap 22.0.1 2023-11-09 10:19:08,475 p=40951 u=MyUser n=ansible | netapp.storagegrid 21.11.1 2023-11-09 10:19:08,475 p=40951 u=MyUser n=ansible | netapp.um_info 21.8.0 2023-11-09 10:19:08,475 p=40951 u=MyUser n=ansible | netapp_eseries.santricity 1.3.1 2023-11-09 10:19:08,475 p=40951 u=MyUser n=ansible |
netbox.netbox 3.9.0 2023-11-09 10:19:08,475 p=40951 u=MyUser n=ansible |
ngine_io.cloudstack 2.3.0 2023-11-09 10:19:08,475 p=40951 u=MyUser n=ansible |
ngine_io.exoscale 1.0.0 2023-11-09 10:19:08,475 p=40951 u=MyUser n=ansible |
ngine_io.vultr 1.1.2 2023-11-09 10:19:08,475 p=40951 u=MyUser n=ansible |
openstack.cloud 1.10.0 2023-11-09 10:19:08,475 p=40951 u=MyUser n=ansible | openvswitch.openvswitch 2.1.0 2023-11-09 10:19:08,476 p=40951 u=MyUser n=ansible |
ovirt.ovirt 2.4.1 2023-11-09 10:19:08,476 p=40951 u=MyUser n=ansible |
purestorage.flasharray 1.15.0 2023-11-09 10:19:08,476 p=40951 u=MyUser n=ansible | purestorage.flashblade 1.10.0 2023-11-09 10:19:08,476 p=40951 u=MyUser n=ansible | purestorage.fusion 1.2.0 2023-11-09 10:19:08,476 p=40951 u=MyUser n=ansible |
sensu.sensu_go 1.13.1 2023-11-09 10:19:08,476 p=40951 u=MyUser n=ansible | splunk.es 2.1.0 2023-11-09 10:19:08,476 p=40951 u=MyUser n=ansible |
t_systems_mms.icinga_director 1.31.4 2023-11-09 10:19:08,476 p=40951 u=MyUser n=ansible | theforeman.foreman 3.7.0 2023-11-09 10:19:08,476 p=40951 u=MyUser n=ansible |
vmware.vmware_rest 2.2.0 2023-11-09 10:19:08,476 p=40951 u=MyUser n=ansible |
vultr.cloud 1.3.1 2023-11-09 10:19:08,476 p=40951 u=MyUser n=ansible |
vyos.vyos 4.0.0 2023-11-09 10:19:08,476 p=40951 u=MyUser n=ansible |
wti.remote 1.0.4 2023-11-09 10:19:10,927 p=40960 u=MyUser n=ansible |
# /Users/MyUser/MyMac/git/ans.play/ansible-galaxy/collections/ansible_collections Collection Version |
---|
2023-11-09 10:19:10,927 p=40960 u=MyUser n=ansible | ans.linux 1.2.3 2023-11-09 10:19:10,927 p=40960 u=MyUser n=ansible |
ansible.netcommon 5.3.0 2023-11-09 10:19:10,927 p=40960 u=MyUser n=ansible |
ansible.posix 1.5.4 2023-11-09 10:19:10,927 p=40960 u=MyUser n=ansible |
ansible.utils 2.11.0 2023-11-09 10:19:10,927 p=40960 u=MyUser n=ansible | ansible.windows 2.1.0 2023-11-09 10:19:10,927 p=40960 u=MyUser n=ansible |
community.docker 3.4.10 2023-11-09 10:19:10,928 p=40960 u=MyUser n=ansible | community.general 8.0.1 2023-11-09 10:19:10,928 p=40960 u=MyUser n=ansible |
community.mysql 3.8.0 2023-11-09 10:19:10,928 p=40960 u=MyUser n=ansible |
community.postgresql 3.2.0 2023-11-09 10:19:10,928 p=40960 u=MyUser n=ansible |
community.zabbix 2.1.0 2023-11-09 10:19:10,947 p=40960 u=MyUser n=ansible |
# /Users/MyUser/MyMac/venv/ansiblelatest/lib/python3.10/site-packages/ansible_collections Collection Version |
---|
2023-11-09 10:19:10,947 p=40960 u=MyUser n=ansible | amazon.aws 5.1.0
2023-11-09 10:19:10,948 p=40960 u=MyUser n=ansible | ansible.netcommon 4.1.0
2023-11-09 10:19:10,948 p=40960 u=MyUser n=ansible | ansible.posix 1.4.0
2023-11-09 10:19:10,948 p=40960 u=MyUser n=ansible | ansible.utils 2.8.0
2023-11-09 10:19:10,948 p=40960 u=MyUser n=ansible | ansible.windows 1.12.0
2023-11-09 10:19:10,948 p=40960 u=MyUser n=ansible | arista.eos 6.0.0
2023-11-09 10:19:10,948 p=40960 u=MyUser n=ansible | awx.awx 21.10.0
2023-11-09 10:19:10,948 p=40960 u=MyUser n=ansible | azure.azcollection 1.14.0
2023-11-09 10:19:10,948 p=40960 u=MyUser n=ansible | check_point.mgmt 4.0.0
2023-11-09 10:19:10,948 p=40960 u=MyUser n=ansible | chocolatey.chocolatey 1.3.1
2023-11-09 10:19:10,948 p=40960 u=MyUser n=ansible | cisco.aci 2.3.0
2023-11-09 10:19:10,948 p=40960 u=MyUser n=ansible | cisco.asa 4.0.0
2023-11-09 10:19:10,948 p=40960 u=MyUser n=ansible | cisco.dnac 6.6.1
2023-11-09 10:19:10,948 p=40960 u=MyUser n=ansible | cisco.intersight 1.0.22
2023-11-09 10:19:10,948 p=40960 u=MyUser n=ansible | cisco.ios 4.0.0
2023-11-09 10:19:10,948 p=40960 u=MyUser n=ansible | cisco.iosxr 4.0.3
2023-11-09 10:19:10,948 p=40960 u=MyUser n=ansible | cisco.ise 2.5.9
2023-11-09 10:19:10,948 p=40960 u=MyUser n=ansible | cisco.meraki 2.13.0
2023-11-09 10:19:10,948 p=40960 u=MyUser n=ansible | cisco.mso 2.1.0
2023-11-09 10:19:10,948 p=40960 u=MyUser n=ansible | cisco.nso 1.0.3
2023-11-09 10:19:10,948 p=40960 u=MyUser n=ansible | cisco.nxos 4.0.1
2023-11-09 10:19:10,948 p=40960 u=MyUser n=ansible | cisco.ucs 1.8.0
2023-11-09 10:19:10,948 p=40960 u=MyUser n=ansible | cloud.common 2.1.2
2023-11-09 10:19:10,949 p=40960 u=MyUser n=ansible | cloudscale_ch.cloud 2.2.3
2023-11-09 10:19:10,949 p=40960 u=MyUser n=ansible | community.aws 5.0.0
2023-11-09 10:19:10,949 p=40960 u=MyUser n=ansible | community.azure 2.0.0
2023-11-09 10:19:10,949 p=40960 u=MyUser n=ansible | community.ciscosmb 1.0.5
2023-11-09 10:19:10,949 p=40960 u=MyUser n=ansible | community.crypto 2.9.0
2023-11-09 10:19:10,949 p=40960 u=MyUser n=ansible | community.digitalocean 1.22.0
2023-11-09 10:19:10,949 p=40960 u=MyUser n=ansible | community.dns 2.4.2
2023-11-09 10:19:10,949 p=40960 u=MyUser n=ansible | community.docker 3.3.1
2023-11-09 10:19:10,949 p=40960 u=MyUser n=ansible | community.fortios 1.0.0
2023-11-09 10:19:10,949 p=40960 u=MyUser n=ansible | community.general 6.1.0
2023-11-09 10:19:10,949 p=40960 u=MyUser n=ansible | community.google 1.0.0
2023-11-09 10:19:10,949 p=40960 u=MyUser n=ansible | community.grafana 1.5.3
2023-11-09 10:19:10,949 p=40960 u=MyUser n=ansible | community.hashi_vault 4.0.0
2023-11-09 10:19:10,949 p=40960 u=MyUser n=ansible | community.hrobot 1.6.0
2023-11-09 10:19:10,949 p=40960 u=MyUser n=ansible | community.libvirt 1.2.0
2023-11-09 10:19:10,949 p=40960 u=MyUser n=ansible | community.mongodb 1.4.2
2023-11-09 10:19:10,949 p=40960 u=MyUser n=ansible | community.mysql 3.5.1
2023-11-09 10:19:10,949 p=40960 u=MyUser n=ansible | community.network 5.0.0
2023-11-09 10:19:10,949 p=40960 u=MyUser n=ansible | community.okd 2.2.0
2023-11-09 10:19:10,949 p=40960 u=MyUser n=ansible | community.postgresql 2.3.1
2023-11-09 10:19:10,949 p=40960 u=MyUser n=ansible | community.proxysql 1.4.0
2023-11-09 10:19:10,949 p=40960 u=MyUser n=ansible | community.rabbitmq 1.2.3
2023-11-09 10:19:10,950 p=40960 u=MyUser n=ansible | community.routeros 2.5.0
2023-11-09 10:19:10,950 p=40960 u=MyUser n=ansible | community.sap 1.0.0
2023-11-09 10:19:10,950 p=40960 u=MyUser n=ansible | community.sap_libs 1.4.0
2023-11-09 10:19:10,950 p=40960 u=MyUser n=ansible | community.skydive 1.0.0
2023-11-09 10:19:10,950 p=40960 u=MyUser n=ansible | community.sops 1.5.0
2023-11-09 10:19:10,950 p=40960 u=MyUser n=ansible | community.vmware 3.2.0
2023-11-09 10:19:10,950 p=40960 u=MyUser n=ansible | community.windows 1.11.1
2023-11-09 10:19:10,950 p=40960 u=MyUser n=ansible | community.zabbix 1.9.0
2023-11-09 10:19:10,950 p=40960 u=MyUser n=ansible | containers.podman 1.10.1
2023-11-09 10:19:10,950 p=40960 u=MyUser n=ansible | cyberark.conjur 1.2.0
2023-11-09 10:19:10,950 p=40960 u=MyUser n=ansible | cyberark.pas 1.0.14
2023-11-09 10:19:10,950 p=40960 u=MyUser n=ansible | dellemc.enterprise_sonic 2.0.0
2023-11-09 10:19:10,950 p=40960 u=MyUser n=ansible | dellemc.openmanage 6.3.0
2023-11-09 10:19:10,950 p=40960 u=MyUser n=ansible | dellemc.os10 1.1.1
2023-11-09 10:19:10,950 p=40960 u=MyUser n=ansible | dellemc.os6 1.0.7
2023-11-09 10:19:10,950 p=40960 u=MyUser n=ansible | dellemc.os9 1.0.4
2023-11-09 10:19:10,950 p=40960 u=MyUser n=ansible | f5networks.f5_modules 1.21.0
2023-11-09 10:19:10,950 p=40960 u=MyUser n=ansible | fortinet.fortimanager 2.1.7
2023-11-09 10:19:10,950 p=40960 u=MyUser n=ansible | fortinet.fortios 2.2.1
2023-11-09 10:19:10,950 p=40960 u=MyUser n=ansible | frr.frr 2.0.0
2023-11-09 10:19:10,950 p=40960 u=MyUser n=ansible | gluster.gluster 1.0.2
2023-11-09 10:19:10,950 p=40960 u=MyUser n=ansible | google.cloud 1.0.2
2023-11-09 10:19:10,951 p=40960 u=MyUser n=ansible | grafana.grafana 1.1.0
2023-11-09 10:19:10,951 p=40960 u=MyUser n=ansible | hetzner.hcloud 1.9.0
2023-11-09 10:19:10,951 p=40960 u=MyUser n=ansible | hpe.nimble 1.1.4
2023-11-09 10:19:10,951 p=40960 u=MyUser n=ansible | ibm.qradar 2.1.0
2023-11-09 10:19:10,951 p=40960 u=MyUser n=ansible | ibm.spectrum_virtualize 1.10.0
2023-11-09 10:19:10,951 p=40960 u=MyUser n=ansible | infinidat.infinibox 1.3.12
2023-11-09 10:19:10,951 p=40960 u=MyUser n=ansible | infoblox.nios_modules 1.4.1
2023-11-09 10:19:10,951 p=40960 u=MyUser n=ansible | inspur.ispim 1.2.0
2023-11-09 10:19:10,951 p=40960 u=MyUser n=ansible | inspur.sm 2.3.0
2023-11-09 10:19:10,951 p=40960 u=MyUser n=ansible | junipernetworks.junos 4.1.0
2023-11-09 10:19:10,951 p=40960 u=MyUser n=ansible | kubernetes.core 2.3.2
2023-11-09 10:19:10,951 p=40960 u=MyUser n=ansible | lowlydba.sqlserver 1.2.1
2023-11-09 10:19:10,951 p=40960 u=MyUser n=ansible | mellanox.onyx 1.0.0
2023-11-09 10:19:10,951 p=40960 u=MyUser n=ansible | netapp.aws 21.7.0
2023-11-09 10:19:10,951 p=40960 u=MyUser n=ansible | netapp.azure 21.10.0
2023-11-09 10:19:10,951 p=40960 u=MyUser n=ansible | netapp.cloudmanager 21.21.0
2023-11-09 10:19:10,951 p=40960 u=MyUser n=ansible | netapp.elementsw 21.7.0
2023-11-09 10:19:10,951 p=40960 u=MyUser n=ansible | netapp.ontap 22.0.1
2023-11-09 10:19:10,951 p=40960 u=MyUser n=ansible | netapp.storagegrid 21.11.1
2023-11-09 10:19:10,951 p=40960 u=MyUser n=ansible | netapp.um_info 21.8.0
2023-11-09 10:19:10,951 p=40960 u=MyUser n=ansible | netapp_eseries.santricity 1.3.1
2023-11-09 10:19:10,952 p=40960 u=MyUser n=ansible | netbox.netbox 3.9.0
2023-11-09 10:19:10,952 p=40960 u=MyUser n=ansible | ngine_io.cloudstack 2.3.0
2023-11-09 10:19:10,952 p=40960 u=MyUser n=ansible | ngine_io.exoscale 1.0.0
2023-11-09 10:19:10,952 p=40960 u=MyUser n=ansible | ngine_io.vultr 1.1.2
2023-11-09 10:19:10,952 p=40960 u=MyUser n=ansible | openstack.cloud 1.10.0
2023-11-09 10:19:10,952 p=40960 u=MyUser n=ansible | openvswitch.openvswitch 2.1.0
2023-11-09 10:19:10,952 p=40960 u=MyUser n=ansible | ovirt.ovirt 2.4.1
2023-11-09 10:19:10,952 p=40960 u=MyUser n=ansible | purestorage.flasharray 1.15.0
2023-11-09 10:19:10,952 p=40960 u=MyUser n=ansible | purestorage.flashblade 1.10.0
2023-11-09 10:19:10,952 p=40960 u=MyUser n=ansible | purestorage.fusion 1.2.0
2023-11-09 10:19:10,952 p=40960 u=MyUser n=ansible | sensu.sensu_go 1.13.1
2023-11-09 10:19:10,952 p=40960 u=MyUser n=ansible | splunk.es 2.1.0
2023-11-09 10:19:10,952 p=40960 u=MyUser n=ansible | t_systems_mms.icinga_director 1.31.4
2023-11-09 10:19:10,952 p=40960 u=MyUser n=ansible | theforeman.foreman 3.7.0
2023-11-09 10:19:10,952 p=40960 u=MyUser n=ansible | vmware.vmware_rest 2.2.0
2023-11-09 10:19:10,952 p=40960 u=MyUser n=ansible | vultr.cloud 1.3.1
2023-11-09 10:19:10,952 p=40960 u=MyUser n=ansible | vyos.vyos 4.0.0
2023-11-09 10:19:10,952 p=40960 u=MyUser n=ansible | wti.remote 1.0.4
2023-11-09 10:19:52,201 p=40975 u=MyUser n=ansible | PLAY [localhost] ***
2023-11-09 10:19:52,218 p=40975 u=MyUser n=ansible | TASK [Gathering Facts] *
2023-11-09 10:19:53,232 p=40975 u=MyUser n=ansible | ok: [localhost]
2023-11-09 10:19:53,252 p=40975 u=MyUser n=ansible | TASK [ans.linux.sys_linux_docker_zabbixconfig : Set credentials to access Zabbix Server API] *
2023-11-09 10:19:53,353 p=40975 u=MyUser n=ansible | ok: [localhost]
2023-11-09 10:19:53,360 p=40975 u=MyUser n=ansible | TASK [ans.linux.sys_linux_docker_zabbixconfig : Get host info, test whether it works] ****
2023-11-09 10:19:54,689 p=40975 u=MyUser n=ansible | platform_type is set to community.zabbix.zabbix
2023-11-09 10:19:55,690 p=40975 u=MyUser n=ansible | ok: [localhost]
2023-11-09 10:19:55,697 p=40975 u=MyUser n=ansible | TASK [ans.linux.sys_linux_docker_zabbixconfig : Create Host Groups] **
2023-11-09 10:19:57,685 p=40975 u=MyUser n=ansible | ok: [localhost]
2023-11-09 10:19:57,692 p=40975 u=MyUser n=ansible | TASK [ans.linux.sys_linux_docker_zabbixconfig : Config host Zabbix Server] ***
2023-11-09 10:20:00,179 p=40975 u=MyUser n=ansible | ok: [localhost]
2023-11-09 10:20:00,186 p=40975 u=MyUser n=ansible | TASK [ans.linux.sys_linux_docker_zabbixconfig : Create Host Zabbix Mon Server] *
2023-11-09 10:20:02,489 p=40975 u=MyUser n=ansible | ok: [localhost]
2023-11-09 10:20:02,644 p=40975 u=MyUser n=ansible | PLAY RECAP *****
2023-11-09 10:20:02,644 p=40975 u=MyUser n=ansible | localhost : ok=6 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
2023-11-09 10:20:02,744 p=41020 u=MyUser n=ansible | shutdown complete
2023-11-09 10:21:00,307 p=41186 u=MyUser n=ansible | Starting galaxy collection install process
2023-11-09 10:21:00,356 p=41186 u=MyUser n=ansible | Process install dependency map
2023-11-09 10:21:00,356 p=41186 u=MyUser n=ansible | |
2023-11-09 10:21:00,459 p=41186 u=MyUser n=ansible | /
2023-11-09 10:21:00,563 p=41186 u=MyUser n=ansible | -
2023-11-09 10:21:00,668 p=41186 u=MyUser n=ansible | \
2023-11-09 10:21:00,772 p=41186 u=MyUser n=ansible | |
2023-11-09 10:21:00,876 p=41186 u=MyUser n=ansible | /
2023-11-09 10:21:00,980 p=41186 u=MyUser n=ansible | -
2023-11-09 10:21:01,081 p=41186 u=MyUser n=ansible | \
2023-11-09 10:21:01,186 p=41186 u=MyUser n=ansible | |
2023-11-09 10:21:01,287 p=41186 u=MyUser n=ansible | /
2023-11-09 10:21:01,392 p=41186 u=MyUser n=ansible | -
2023-11-09 10:21:01,496 p=41186 u=MyUser n=ansible | \
2023-11-09 10:21:01,598 p=41186 u=MyUser n=ansible | |
2023-11-09 10:21:01,701 p=41186 u=MyUser n=ansible | /
2023-11-09 10:21:01,803 p=41186 u=MyUser n=ansible | -
2023-11-09 10:21:01,908 p=41186 u=MyUser n=ansible | \
2023-11-09 10:21:02,009 p=41186 u=MyUser n=ansible | |
2023-11-09 10:21:02,112 p=41186 u=MyUser n=ansible | /
2023-11-09 10:21:02,217 p=41186 u=MyUser n=ansible | -
2023-11-09 10:21:02,319 p=41186 u=MyUser n=ansible | \
2023-11-09 10:21:02,421 p=41186 u=MyUser n=ansible | |
2023-11-09 10:21:02,526 p=41186 u=MyUser n=ansible | /
2023-11-09 10:21:02,628 p=41186 u=MyUser n=ansible | -
2023-11-09 10:21:02,728 p=41186 u=MyUser n=ansible | \
2023-11-09 10:21:02,829 p=41186 u=MyUser n=ansible | |
2023-11-09 10:21:02,930 p=41186 u=MyUser n=ansible | /
2023-11-09 10:21:03,035 p=41186 u=MyUser n=ansible | -
2023-11-09 10:21:03,135 p=41186 u=MyUser n=ansible | \
2023-11-09 10:21:03,236 p=41186 u=MyUser n=ansible | Starting collection install process
2023-11-09 10:21:03,237 p=41186 u=MyUser n=ansible | |
2023-11-09 10:21:03,337 p=41186 u=MyUser n=ansible | Installing 'ans.linux:1.2.3' to '/Users/MyUser/MyMac/git/ans.play/ansible-galaxy/collections/ansible_collections/ans/linux'
2023-11-09 10:21:03,337 p=41186 u=MyUser n=ansible | /
2023-11-09 10:21:03,438 p=41186 u=MyUser n=ansible | Created collection for ans.linux:1.2.3 at /Users/MyUser/MyMac/git/ans.play/ansible-galaxy/collections/ansible_collections/ans/linux
2023-11-09 10:21:03,439 p=41186 u=MyUser n=ansible | ans.linux:1.2.3 was installed successfully
2023-11-09 10:21:15,477 p=41240 u=MyUser n=ansible | Starting galaxy collection install process
2023-11-09 10:21:15,520 p=41240 u=MyUser n=ansible | Process install dependency map
2023-11-09 10:21:15,521 p=41240 u=MyUser n=ansible | |
2023-11-09 10:21:15,622 p=41240 u=MyUser n=ansible | /
2023-11-09 10:21:15,724 p=41240 u=MyUser n=ansible | -
2023-11-09 10:21:15,826 p=41240 u=MyUser n=ansible | \
2023-11-09 10:21:15,926 p=41240 u=MyUser n=ansible | |
2023-11-09 10:21:16,027 p=41240 u=MyUser n=ansible | /
2023-11-09 10:21:16,133 p=41240 u=MyUser n=ansible | Starting collection install process
2023-11-09 10:21:16,133 p=41240 u=MyUser n=ansible | |
2023-11-09 10:21:16,236 p=41240 u=MyUser n=ansible | Installing 'ans.linux:1.2.3' to '/Users/MyUser/MyMac/git/ans.play/ansible-galaxy/collections/ansible_collections/ans/linux'
2023-11-09 10:21:16,236 p=41240 u=MyUser n=ansible | /
2023-11-09 10:21:16,336 p=41240 u=MyUser n=ansible | Created collection for ans.linux:1.2.3 at /Users/MyUser/MyMac/git/ans.play/ansible-galaxy/collections/ansible_collections/ans/linux
2023-11-09 10:21:16,336 p=41240 u=MyUser n=ansible | ans.linux:1.2.3 was installed successfully
2023-11-09 10:21:25,566 p=41280 u=MyUser n=ansible | PLAY [localhost] ***
2023-11-09 10:21:25,584 p=41280 u=MyUser n=ansible | TASK [Gathering Facts] *
2023-11-09 10:21:26,465 p=41280 u=MyUser n=ansible | ok: [localhost]
2023-11-09 10:21:26,484 p=41280 u=MyUser n=ansible | TASK [ans.linux.sys_linux_docker_zabbixconfig : Set credentials to access Zabbix Server API] *
2023-11-09 10:21:26,583 p=41280 u=MyUser n=ansible | ok: [localhost]
2023-11-09 10:21:26,590 p=41280 u=MyUser n=ansible | TASK [ans.linux.sys_linux_docker_zabbixconfig : NOT WORKING Create HTTP User] ****
2023-11-09 10:21:27,924 p=41280 u=MyUser n=ansible | platform_type is set to community.zabbix.zabbix
2023-11-09 10:21:28,571 p=41280 u=MyUser n=ansible | An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ansible.module_utils.connection.ConnectionError: Invalid JSON response: File not found.
2023-11-09 10:21:28,572 p=41280 u=MyUser n=ansible | fatal: [localhost]: FAILED! => {"changed": false, "module_stderr": "Traceback (most recent call last):\n File \"/Users/MyUser/.ansible/tmp/ansible-local-41280ykb_xh2z/ansible-tmp-1699521687.9272718-41319-49021848215549/AnsiballZ_zabbix_user.py\", line 107, in
2023-11-09 10:21:58,628 p=41323 u=MyUser n=ansible | persistent connection idle timeout triggered, timeout value is 30 secs.
See the timeout setting options in the Network Debug and Troubleshooting Guide.
2023-11-09 10:21:58,774 p=41323 u=MyUser n=ansible | shutdown complete
2023-11-09 10:23:56,329 p=41389 u=MyUser n=ansible | ansible-playbook [core 2.14.1]
config file = /Users/MyUser/MyMac/git/ans.play/ansible.cfg
configured module search path = ['/Users/MyUser/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /Users/MyUser/MyMac/venv/ansiblelatest/lib/python3.10/site-packages/ansible
ansible collection location = /Users/MyUser/MyMac/git/ans.play/ansible-galaxy/collections
executable location = /Users/MyUser/MyMac/venv/ansiblelatest/bin/ansible-playbook
python version = 3.10.13 (main, Aug 24 2023, 12:59:26) [Clang 15.0.0 (clang-1500.0.40.1)] (/Users/MyUser/MyMac/venv/ansiblelatest/bin/python3.10)
jinja version = 3.1.2
libyaml = True
2023-11-09 10:23:56,330 p=41389 u=MyUser n=ansible | Using /Users/MyUser/MyMac/git/ans.play/ansible.cfg as config file
2023-11-09 10:23:59,806 p=41389 u=MyUser n=ansible | host_list declined parsing /Users/MyUser/MyMac/git/ans.play/inventory/inventory.yml as it did not pass its verify_file() method
2023-11-09 10:23:59,806 p=41389 u=MyUser n=ansible | script declined parsing /Users/MyUser/MyMac/git/ans.play/inventory/inventory.yml as it did not pass its verify_file() method
2023-11-09 10:23:59,808 p=41389 u=MyUser n=ansible | Parsed /Users/MyUser/MyMac/git/ans.play/inventory/inventory.yml inventory source with yaml plugin
2023-11-09 10:23:59,937 p=41389 u=MyUser n=ansible | Skipping callback 'default', as we already have a stdout callback.
2023-11-09 10:23:59,937 p=41389 u=MyUser n=ansible | Skipping callback 'minimal', as we already have a stdout callback.
2023-11-09 10:23:59,937 p=41389 u=MyUser n=ansible | Skipping callback 'oneline', as we already have a stdout callback.
2023-11-09 10:23:59,937 p=41389 u=MyUser n=ansible | PLAYBOOK: sys_linux_docker_zabbixconfig.yml **
2023-11-09 10:23:59,938 p=41389 u=MyUser n=ansible | 1 plays in playbooks/sys_linux_docker_zabbixconfig.yml
2023-11-09 10:23:59,939 p=41389 u=MyUser n=ansible | PLAY [localhost] ***
2023-11-09 10:23:59,955 p=41389 u=MyUser n=ansible | TASK [Gathering Facts] *
2023-11-09 10:23:59,978 p=41389 u=MyUser n=ansible | <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: MyUser
2023-11-09 10:23:59,978 p=41389 u=MyUser n=ansible | <127.0.0.1> EXEC /bin/sh -c 'echo ~MyUser && sleep 0'
2023-11-09 10:23:59,996 p=41389 u=MyUser n=ansible | <127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "echo /Users/MyUser/.ansible/tmp
"&& mkdir "echo /Users/MyUser/.ansible/tmp/ansible-tmp-1699521839.994006-41394-99503705573809
" && echo ansible-tmp-1699521839.994006-41394-99503705573809="echo /Users/MyUser/.ansible/tmp/ansible-tmp-1699521839.994006-41394-99503705573809
" ) && sleep 0'
2023-11-09 10:24:00,283 p=41389 u=MyUser n=ansible | Using module file /Users/MyUser/MyMac/venv/ansiblelatest/lib/python3.10/site-packages/ansible/modules/setup.py
2023-11-09 10:24:00,283 p=41389 u=MyUser n=ansible | <127.0.0.1> PUT /Users/MyUser/.ansible/tmp/ansible-local-41389q0o5pnzn/tmpkta394o5 TO /Users/MyUser/.ansible/tmp/ansible-tmp-1699521839.994006-41394-99503705573809/AnsiballZ_setup.py
2023-11-09 10:24:00,284 p=41389 u=MyUser n=ansible | <127.0.0.1> EXEC /bin/sh -c 'chmod u+x /Users/MyUser/.ansible/tmp/ansible-tmp-1699521839.994006-41394-99503705573809/ /Users/MyUser/.ansible/tmp/ansible-tmp-1699521839.994006-41394-99503705573809/AnsiballZ_setup.py && sleep 0'
2023-11-09 10:24:00,302 p=41389 u=MyUser n=ansible | <127.0.0.1> EXEC /bin/sh -c '/Users/MyUser/MyMac/venv/ansiblelatest/bin/python3.10 /Users/MyUser/.ansible/tmp/ansible-tmp-1699521839.994006-41394-99503705573809/AnsiballZ_setup.py && sleep 0'
2023-11-09 10:24:00,938 p=41389 u=MyUser n=ansible | <127.0.0.1> EXEC /bin/sh -c 'rm -f -r /Users/MyUser/.ansible/tmp/ansible-tmp-1699521839.994006-41394-99503705573809/ > /dev/null 2>&1 && sleep 0'
2023-11-09 10:24:00,974 p=41389 u=MyUser n=ansible | ok: [localhost]
2023-11-09 10:24:00,996 p=41389 u=MyUser n=ansible | TASK [ans.linux.sys_linux_docker_zabbixconfig : Set credentials to access Zabbix Server API] *****
2023-11-09 10:24:01,095 p=41389 u=MyUser n=ansible | ok: [localhost] => {
"ansible_facts": {
"ansible_httpapi_pass": "echo /Users/MyUser/.ansible/tmp/ansible-local-41389q0o5pnzn
"&& mkdir "echo /Users/MyUser/.ansible/tmp/ansible-local-41389q0o5pnzn/ansible-tmp-1699521842.410793-41430-112511039232137
" && echo ansible-tmp-1699521842.410793-41430-112511039232137="echo /Users/MyUser/.ansible/tmp/ansible-local-41389q0o5pnzn/ansible-tmp-1699521842.410793-41430-112511039232137
" ) && sleep 0'
2023-11-09 10:24:02,596 p=41389 u=MyUser n=ansible | Using module file /Users/MyUser/MyMac/git/ans.play/ansible-galaxy/collections/ansible_collections/community/zabbix/plugins/modules/zabbix_user.py
2023-11-09 10:24:02,597 p=41389 u=MyUser n=ansible |
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/Users/MyUser/MyMac/venv/ansiblelatest/lib/python3.10/site-packages/ansible/utils/jsonrpc.py", line 46, in handle_request result = rpc_method(*args, **kwargs) File "/Users/MyUser/MyMac/git/ans.play/ansible-galaxy/collections/ansible_collections/community/zabbix/plugins/httpapi/zabbix.py", line 123, in api_version code, version = self.send_request(data=self.payload_builder('apiinfo.version')) File "/Users/MyUser/MyMac/git/ans.play/ansible-galaxy/collections/ansible_collections/community/zabbix/plugins/httpapi/zabbix.py", line 194, in send_request raise e File "/Users/MyUser/MyMac/git/ans.play/ansible-galaxy/collections/ansible_collections/community/zabbix/plugins/httpapi/zabbix.py", line 158, in send_request response, response_data = self.connection.send( File "/Users/MyUser/MyMac/venv/ansiblelatest/lib/python3.10/site-packages/ansible/plugins/connection/init.py", line 35, in wrapped self._connect() File "/Users/MyUser/MyMac/git/ans.play/ansible-galaxy/collections/ansible_collections/ansible/netcommon/plugins/connection/httpapi.py", line 291, in _connect self.httpapi.login(self.get_option("remote_user"), self.get_option("password")) File "/Users/MyUser/MyMac/git/ans.play/ansible-galaxy/collections/ansible_collections/community/zabbix/plugins/httpapi/zabbix.py", line 102, in login code, response = self.send_request(data=payload) File "/Users/MyUser/MyMac/git/ans.play/ansible-galaxy/collections/ansible_collections/community/zabbix/plugins/httpapi/zabbix.py", line 194, in send_request raise e File "/Users/MyUser/MyMac/git/ans.play/ansible-galaxy/collections/ansible_collections/community/zabbix/plugins/httpapi/zabbix.py", line 172, in send_request raise ConnectionError("Invalid JSON response: %s" % value) ansible.module_utils.connection.ConnectionError: Invalid JSON response: File not found.
2023-11-09 10:24:03,035 p=41389 u=MyUser n=ansible |
2023-11-09 10:24:03,059 p=41389 u=MyUser n=ansible | fatal: [localhost]: FAILED! => {
"changed": false,
"module_stderr": "Traceback (most recent call last):\n File \"/Users/MyUser/.ansible/tmp/ansible-local-41389q0o5pnzn/ansible-tmp-1699521842.410793-41430-112511039232137/AnsiballZ_zabbix_user.py\", line 107, in
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/Users/MyUser/MyMac/venv/ansiblelatest/lib/python3.10/site-packages/ansible/utils/jsonrpc.py", line 46, in handle_request result = rpc_method(*args, **kwargs) File "/Users/MyUser/MyMac/git/ans.play/ansible-galaxy/collections/ansible_collections/ansible/utils/plugins/plugin_utils/connection_base.py", line 83, in reset self.close() File "/Users/MyUser/MyMac/git/ans.play/ansible-galaxy/collections/ansible_collections/ansible/netcommon/plugins/connection/httpapi.py", line 300, in close self.logout() File "/Users/MyUser/MyMac/git/ans.play/ansible-galaxy/collections/ansible_collections/community/zabbix/plugins/httpapi/zabbix.py", line 111, in logout self.send_request(data=payload) File "/Users/MyUser/MyMac/git/ans.play/ansible-galaxy/collections/ansible_collections/community/zabbix/plugins/httpapi/zabbix.py", line 194, in send_request raise e File "/Users/MyUser/MyMac/git/ans.play/ansible-galaxy/collections/ansible_collections/community/zabbix/plugins/httpapi/zabbix.py", line 172, in send_request raise ConnectionError("Invalid JSON response: %s" % value) ansible.module_utils.connection.ConnectionError: Invalid JSON response: File not found.
2023-11-09 10:24:03,118 p=41389 u=MyUser n=ansible | PLAY RECAP ***
2023-11-09 10:24:03,118 p=41389 u=MyUser n=ansible | localhost : ok=2 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
2023-11-09 10:24:33,117 p=41434 u=MyUser n=ansible | persistent connection idle timeout triggered, timeout value is 30 secs.
See the timeout setting options in the Network Debug and Troubleshooting Guide.
2023-11-09 10:24:33,259 p=41434 u=MyUser n=ansible | shutdown complete
`
I managed to reproduce the error. Funny fact if you set:
ansible_zabbix_url_path: "/"
then it works. For zabbix_user module default path for some reason is /zabbix
(confirmed with tcpdump). Investigating. Will keep you posted.
@BGmot
I managed to reproduce the error. Funny fact if you set:
ansible_zabbix_url_path: "/"
then it works. For zabbix_user module default path for some reason is
/zabbix
(confirmed with tcpdump). Investigating. Will keep you posted.
Yes, I can confirm that it works if I set the parameter "ansible_zabbix_url_path" to "/".
Many thx for your effort. I appreciate it much. I am glad to see that you can reproduce this behaviour.
Just having said... The module "community.zabbix.zabbix_template" is affected by the same parameter deviation.
Should I open a new bug report for that?
Would suggest you look at #970 and see if anything in there helps out.
@pyrodie18 Thank you!
@josoko12
Should I open a new bug report for that?
no, this issue is good, let's track it here. I'll let you know when it is fixed.
Actually for me everything is working as expected / documented. If you don't define ansible_zabbix_url_path
then it defaults to /zabbi
and fails for you (and for me too).
Modules which are working in my Zabbix Docker Env. zabbix_host_info module zabbix_group module zabbix_host module
Here I am confused, none of these modules work for me unless I define:
ansible_zabbix_url_path: '/'
Here is my whole playbook:
- hosts: localhost
gather_facts: false
vars:
ansible_network_os: community.zabbix.zabbix
ansible_connection: httpapi
ansible_httpapi_port: 8080
ansible_httpapi_use_ssl: false
ansible_httpapi_validate_certs: false
ansible_zabbix_url_path: "/"
ansible_host: ls1
tasks:
- set_fact:
rv_http_user: test
rv_http_user_pw: zabbix1!
ansible_user: Admin
ansible_httpapi_pass: zabbix
- name: Get Zabbix host info
community.zabbix.zabbix_host_info:
host_name: Zabbix server
register: out
- debug: var=out
- name: Create host group
community.zabbix.zabbix_group:
host_groups:
- Test host group
- name: Create Zabbix host
community.zabbix.zabbix_host:
host_name: TestHost
host_groups:
- Test host group
- name: NOT WORKING Create HTTP User
community.zabbix.zabbix_user:
username: "{{ rv_http_user }}"
passwd: "{{ rv_http_user_pw }}"
usrgrps:
- Zabbix administrators
autologout: 0
role_name: Super admin role
state: present
Please share yours where all these modules work without setting ansible_zabbix_url_path
to '/'.
Question: Is ansible_zabbix_url_path a mandatory parameter?
No, it is not mandatory. By default it is zabbix
see https://github.com/ansible-collections/community.zabbix/blob/main/plugins/httpapi/zabbix.py#L66
PS: your last post is quite poorly formatted -/
Question: Is ansible_zabbix_url_path a mandatory parameter?
No, it is not mandatory. By default it is
zabbix
see https://github.com/ansible-collections/community.zabbix/blob/main/plugins/httpapi/zabbix.py#L66PS: your last post is quite poorly formatted -/
I know. Sorry. I will fix the post... OK, then it makes sense, that this will not work in my environment, if i don't set the parameter. :-)
Here we go...
@BGmot
It's strange. Let me summarise it.
This works now, but not from the beginning:
name: Set credentials to access Zabbix Server API set_fact: ansible_user: "{{ rv_api_user }}" ansible_httpapi_pass: "{{ rv_api_user_pw }}"
name: NOT WORKING Create HTTP User
vars:
ansible_network_os: community.zabbix.zabbix
ansible_connection: httpapi
ansible_httpapi_port: 443
ansible_httpapi_use_ssl: true
ansible_httpapi_validate_certs: false
ansible_zabbix_url_path: "" # If Zabbix WebUI runs on non-default (zabbix) path ,e.g. http://
name: Get host info, test whether it works
vars:
ansible_network_os: community.zabbix.zabbix
ansible_connection: httpapi
ansible_httpapi_port: 443
ansible_httpapi_use_ssl: true
ansible_httpapi_validate_certs: false
ansible_zabbix_url_path: "" # If Zabbix WebUI runs on non-default (zabbix) path ,e.g. http://
debug: var=out
name: Create Host Groups
vars:
ansible_network_os: community.zabbix.zabbix
ansible_connection: httpapi
ansible_httpapi_port: 443
ansible_httpapi_use_ssl: true
ansible_httpapi_validate_certs: false
ansible_zabbix_url_path: "" # If Zabbix WebUI runs on non-default (zabbix) path ,e.g. http://
name: NOT WORKING Import Zabbix templates from XML
vars:
ansible_network_os: community.zabbix.zabbix
ansible_connection: httpapi
ansible_httpapi_port: 443
ansible_httpapi_use_ssl: true
ansible_httpapi_validate_certs: false
ansible_zabbix_url_path: "" # If Zabbix WebUI runs on non-default (zabbix) path ,e.g. http://
name: Config host Zabbix Server
vars:
ansible_network_os: community.zabbix.zabbix
ansible_connection: httpapi
ansible_httpapi_port: 443
ansible_httpapi_use_ssl: true
ansible_httpapi_validate_certs: false
ansible_zabbix_url_path: "" # If Zabbix WebUI runs on non-default (zabbix) path ,e.g. http://
name: Create Host Zabbix Mon Server
vars:
ansible_network_os: community.zabbix.zabbix
ansible_connection: httpapi
ansible_httpapi_port: 443
ansible_httpapi_use_ssl: true
ansible_httpapi_validate_certs: false
ansible_zabbix_url_path: "" # If Zabbix WebUI runs on non-default (zabbix) path ,e.g. http://
Before it started to work, I started with a commented out parameter ansible_zabbix_url_path, because I assumed, there should be a default value defined already. The Playbook did not work.
ansible_host: "{{ rv_zabbix_host }}" community.zabbix.zabbix_user: username: "{{ rv_http_user }}" passwd: "{{ rv_http_user_pw }}" usrgrps:
First change, I set this parameter ansible_zabbix_url_path to value "" and the playbook did not work as well.
Then, I set the ansible_zabbix_url_path to value "/" and the Playbook started to work.
The final step was to set the parameter ansible_zabbix_url_path to "" and it worked as well.
The thing now is, I cannot reproduce it again.
Question: Is ansible_zabbix_url_path a mandatory parameter?
Last note: I am calling this roles by importing them as a collection.
hosts:
roles:
so is the issue resolved for you?
so is the issue resolved for you?
It works now. So yes. I will send a new post, if I note something else. Thank you @BGmot.
SUMMARY
community.zabbix.zabbix_user module is not working according to this documentation: https://docs.ansible.com/ansible/latest/collections/community/zabbix/zabbix_user_module.html#ansible-collections-community-zabbix-zabbix-user-module
ISSUE TYPE
COMPONENT NAME
community.zabbix.zabbix_user
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT / Zabbix Version
STEPS TO REPRODUCE
Just starting the task for community.zabbix.zabbix_user module.
EXPECTED RESULTS
New Created User on Zabbix
ACTUAL RESULTS