diff options
| author | alex <alex@pdp7.net> | 2023-09-16 14:21:33 +0200 |
|---|---|---|
| committer | alex <alex@pdp7.net> | 2023-09-16 14:21:33 +0200 |
| commit | d3062de6cf2e74ba6d6945e64e7f316cb4d83c7a (patch) | |
| tree | becd6990ddd3ed99fb63fb418bcd7019269dec66 /personal_infra/playbooks | |
| parent | 0e50723e8363d3988f88b8b6c36fecf08ce2a894 (diff) | |
Further fixes to firewall control
Diffstat (limited to 'personal_infra/playbooks')
| -rw-r--r-- | personal_infra/playbooks/roles/deploy_ragent/tasks/main.yml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/personal_infra/playbooks/roles/deploy_ragent/tasks/main.yml b/personal_infra/playbooks/roles/deploy_ragent/tasks/main.yml index 38cacab5..72bd5bed 100644 --- a/personal_infra/playbooks/roles/deploy_ragent/tasks/main.yml +++ b/personal_infra/playbooks/roles/deploy_ragent/tasks/main.yml @@ -33,10 +33,10 @@ state: restarted - name: open firewall command: firewall-cmd --permanent --add-port=21488/tcp - when: ansible_os_family == "RedHat" and ansible_distribution_major_version in ("7", "8", "9") and ansible_virtualization_type != "lxc" and not network.disable_firewall + when: ansible_os_family == "RedHat" and ansible_distribution_major_version in ("7", "8", "9") and ansible_virtualization_type != "lxc" and not network.disable_firewall|default(False) - name: reload firewall command: firewall-cmd --reload - when: ansible_os_family == "RedHat" and ansible_distribution_major_version in ("7", "8", "9") and ansible_virtualization_type != "lxc" and not network.disable_firewall + when: ansible_os_family == "RedHat" and ansible_distribution_major_version in ("7", "8", "9") and ansible_virtualization_type != "lxc" and not network.disable_firewall|default(False) - name: force check community.general.nagios: action: forced_check |
