Fix ansible-lint rule violations

This commit is contained in:
ansible-code-bot[bot]
2024-09-12 09:27:25 +00:00
parent 51a3bedf4f
commit ea7ef6e0f0
103 changed files with 3396 additions and 3572 deletions

View File

@@ -4,20 +4,20 @@
become: true
tasks:
- name: Open firewall port 10050 for Zabbix agent (Debian)
ansible.builtin.ufw:
when: ansible_os_family == "Debian"
community.general.ufw:
rule: allow
port: 10050
proto: tcp
when: ansible_os_family == "Debian"
- name: Open firewall port 10050 for Zabbix agent (RedHat)
firewalld:
when: ansible_os_family == "RedHat"
ansible.posix.firewalld:
service: zabbix-agent
port: 10050/tcp
permanent: true
state: enabled
immediate: true
when: ansible_os_family == "RedHat"
- name: Restart firewall to apply changes (Debian)
ansible.builtin.service: