Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zabbix proxy resource reported changed on every apply #1181

Open
vamshi8 opened this issue Feb 16, 2024 · 0 comments
Open

zabbix proxy resource reported changed on every apply #1181

vamshi8 opened this issue Feb 16, 2024 · 0 comments
Labels
bug Something isn't working module The issue or pull request is related to Zabbix module

Comments

@vamshi8
Copy link

vamshi8 commented Feb 16, 2024

SUMMARY

we are using zabbix_proxy resource to create passive proxy and whenever we apply we see the resource is been changed although here is no change to the code.
Tried to run in debug mode, did not see any clue why this is happening.

ISSUE TYPE
  • Bug Report
COMPONENT NAME

zabbix_proxy

ANSIBLE VERSION
  config file = /opt/ansible/config/ansible-config-xxxxxx.cfg
  configured module search path = ['/home/user/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /opt/venv-ansible/lib64/python3.9/site-packages/ansible
  ansible collection location = /home/user/.ansible/collections:/usr/share/ansible/collections
  executable location = /opt/venv-ansible/bin/ansible
  python version = 3.9.16 (main, Sep 22 2023, 17:57:55) [GCC 8.5.0 20210514 (Red Hat 8.5.0-18)] (/opt/venv-ansible/bin/python3.9)
  jinja version = 3.1.3
  libyaml = True


CONFIGURATION
DEFAULT_FORKS(/opt/ansible/config/ansible-config-xxxxxxxxxxxx.cfg) = 100
DEFAULT_HOST_LIST(/opt/ansible/config/ansible-config-xxxxxxxxxxxx.cfg) = ['/opt/ansible/inventory/cert/hosts']
DEFAULT_VAULT_PASSWORD_FILE(/opt/ansible/config/ansible-config-xxxxxxxxx.cfg) = /opt/ansible/keys/vault_token-nonprod
HOST_KEY_CHECKING(/opt/ansible/config/ansible-xxxxxxxxx.cfg) = False
RETRY_FILES_ENABLED(/opt/ansible/config/ansible-config-xxxxxxxxxx.cfg) = False


OS / ENVIRONMENT / Zabbix Version

Os version: RHEL 9/ zabbix version 6.4

STEPS TO REPRODUCE
- name: Update Zabbix passive proxies for RHEL9
  module_defaults:
    zabbix_proxy:
      state: present
  zabbix_proxy:
    proxy_name: "xxx"
    state: "present"
    status: "passive"
    interface:
      useip: 1
      ip: "xxxxx"
    tls_connect: "xxx"
    tls_psk_identity: "xxx-proxy"
    tls_psk: "xxxxxxxxx"
  become: false
  vars:
    ansible_connection: httpapi
    ansible_user: zbx_user
  tags: passive_proxies
  when: ansible_distribution_major_version == "9"

EXPECTED RESULTS

Resource is not changed on every apply .

ACTUAL RESULTS

It showed the resource is changed even though there is no change in code.
No hints from debug logs

@pyrodie18 pyrodie18 added bug Something isn't working module The issue or pull request is related to Zabbix module labels Feb 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working module The issue or pull request is related to Zabbix module
Projects
None yet
Development

No branches or pull requests

2 participants