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

View File

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