Files
ansible-role-checkmk-agent/handlers/main.yml
Aaron Guise a6f7d24fa1
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
fix: Use FQ Name for UFW
2024-06-01 20:03:34 +12:00

40 lines
839 B
YAML

---
# handlers file for ansible-role-cmk-agent
- name: restart xinetd
service:
name: xinetd
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
state: enabled
permanent: true
immediate: true
ignore_errors: true
when: ansible_os_family == "RedHat"
- name: ensure firewall open (debian)
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
state: absent