Skip to content

Commit

Permalink
Multiple agenet listening IPs (#1430)
Browse files Browse the repository at this point in the history
* zabbix_agent role: accept several IPs in `zabbix_agent_listenip` variable.

* CHANGELOG fragment added.

* Fix wording.
  • Loading branch information
BGmot authored Dec 11, 2024
1 parent 645a81a commit 157dca8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 2 additions & 0 deletions changelogs/fragments/zabbix_agent_listenip.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
minor_changes:
- zabbix_agent role - accept several IPs in `zabbix_agent_listenip` variable.
10 changes: 6 additions & 4 deletions roles/zabbix_agent/tasks/Linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,13 @@

- name: "Fail invalid specified agent_listenip"
ansible.builtin.fail:
msg: "The agent_listenip does not exist"
msg: "The {{ item }} (agent_listenip) does not exist"
when:
- zabbix_agent_listenip != '0.0.0.0'
- zabbix_agent_listenip != '127.0.0.1'
- (zabbix_agent_listenip not in ansible_all_ipv4_addresses)
- item != '0.0.0.0'
- item != '127.0.0.1'
- item not in ansible_all_ipv4_addresses
with_items:
"{{ zabbix_agent_listenip | split(',') }}"
tags:
- config

Expand Down

0 comments on commit 157dca8

Please sign in to comment.