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 Agent role - wrong set_fact if definition #1314

Closed
david-sieg opened this issue Jul 1, 2024 · 0 comments
Closed

Zabbix Agent role - wrong set_fact if definition #1314

david-sieg opened this issue Jul 1, 2024 · 0 comments
Labels
bug Something isn't working role The issue or pull request is related to Zabbix role

Comments

@david-sieg
Copy link
Contributor

david-sieg commented Jul 1, 2024

SUMMARY

I wondered why my defined variable zabbix_agent_logfile isn't recognized.
Due to wrong if condition default _logfile is used.

wrong if

ISSUE TYPE
  • Bug Report
COMPONENT NAME
- name: Set Variables
  ansible.builtin.set_fact:
    zabbix_agent_include: "{{ zabbix_agent_include is defined | ternary(zabbix_agent_include, _include) }}"
    zabbix_agent_logfile: "{{ zabbix_agent_logfilee is defined | ternary(zabbix_agent_logfile, _logfile) }}"
    zabbix_agent_package: "{{ zabbix_agent_package is defined | ternary(zabbix_agent_package, _agent_package) }}"
    zabbix_agent_pidfile: "{{ zabbix_agent_pidfile is defined | ternary(zabbix_agent_pidfile, _pidfile) }}"
    zabbix_agent_service: "{{ zabbix_agent_service is defined | ternary(zabbix_agent_service, _agent_service) }}"
    zabbix_agent_tls_subject: "{{ zabbix_agent_tls_subject is defined | ternary(zabbix_agent_tls_subject, _tls_subject) }}"
    zabbix_agent_tlsaccept: "{{ zabbix_agent_tlsaccept is defined | ternary(zabbix_agent_tlsaccept, 'unencrypted')}}"
    zabbix_agent_tlsconnect: "{{ zabbix_agent_tlsconnect is defined | ternary(zabbix_agent_tlsconnect, 'unencrypted')}}"
ANSIBLE VERSION

2.15.11

EXPECTED RESULTS

Running deployment of Zabbix Agent.

@pyrodie18 pyrodie18 added bug Something isn't working role The issue or pull request is related to Zabbix role labels Jul 1, 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 role The issue or pull request is related to Zabbix role
Projects
None yet
2 participants