Don't fail if firewalld not active

This commit is contained in:
2021-10-19 16:28:47 +13:00
parent d899964718
commit ed0fc10161
2 changed files with 7 additions and 0 deletions

View File

@@ -16,8 +16,14 @@
state: enabled state: enabled
permanent: yes permanent: yes
immediate: yes immediate: yes
ignore_errors: true
- name: remove agent - name: remove agent
file: file:
path: /tmp/check-mk-agent.rpm path: /tmp/check-mk-agent.rpm
state: absent
- name: remove selinux policy file
file:
path: /tmp/checkmk-agent-autoupgrade.pp
state: absent state: absent

View File

@@ -24,6 +24,7 @@
- name: install the module - name: install the module
command: /usr/sbin/semodule -i /tmp/checkmk-agent-autoupgrade.pp command: /usr/sbin/semodule -i /tmp/checkmk-agent-autoupgrade.pp
when: cmk_mod_installed is not defined when: cmk_mod_installed is not defined
notify: remove selinux policy file
when: ansible_selinux when: ansible_selinux
tags: selinux-pre tags: selinux-pre