fix: Use FQ Name for UFW
Some checks failed
CI / lint (push) Failing after 12s
CI / Molecule Test (almalinux8) (push) Has been skipped
CI / Molecule Test (almalinux9) (push) Has been skipped
CI / release (push) Has been skipped
CI / notify (push) Has been skipped

This commit is contained in:
2024-06-01 20:03:34 +12:00
parent efb8569ef9
commit a6f7d24fa1
2 changed files with 8 additions and 1 deletions

View File

@@ -6,9 +6,11 @@
state: restarted
enabled: true
when: 'ansible_os_family != "RedHat" and ansible_os_distribution_major_version != "9"'
- name: cmk fresh install
set_fact:
cmk_fresh_install: true
- name: ensure firewall open (rhel)
firewalld:
port: 6556/tcp
@@ -17,17 +19,20 @@
immediate: true
ignore_errors: true
when: ansible_os_family == "RedHat"
- name: ensure firewall open (debian)
ufw:
community.general.ufw:
rule: allow
port: 6556
proto: tcp
ignore_errors: true
when: ansible_os_family == "Debian"
- name: remove agent
file:
path: /tmp/check-mk-agent.rpm
state: absent
- name: remove selinux policy file
file:
path: /tmp/checkmk-agent-autoupgrade.pp

View File

@@ -6,11 +6,13 @@
state: present
notify: restart xinetd
when: ansible_distribution_major_version != '9'
- name: Start xinetd
service:
name: xinetd
state: started
when: ansible_distribution_major_version != '9'
- name: Fix SeLinux Auto-Updates
when: ansible_selinux|bool
tags: selinux-pre