feat ✨: Add conditional execution for reloading PVE firewall
This commit introduces a new feature that allows conditional execution of the PVE firewall reload command based on certain conditions, enhancing flexibility and control over firewall management.
This commit is contained in:
@@ -35,8 +35,9 @@
|
||||
- name: Restart fail2ban
|
||||
ansible.builtin.systemd:
|
||||
name: fail2ban
|
||||
state: restarted
|
||||
state: reloaded
|
||||
|
||||
- name: Reload pve firewall
|
||||
ansible.builtin.command: pve-firewall reload
|
||||
when: fw_compile_check.rc == 0
|
||||
changed_when: false
|
||||
|
||||
Reference in New Issue
Block a user