feat ✨: Add debug tasks for Proxmox firewall config path and contents #49
Reference in New Issue
Block a user
Delete Branch "dev"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This commit introduces new debug tasks to help diagnose issues related to the Proxmox firewall configuration path and its contents. These tasks will assist in verifying that the paths are correctly set up and that the necessary files are present.
Review Summary
(fw_content.content | default('') | b64decode)and searching for 'enable:\s1' to using(fw_content.content | b64decode)and searching for '^enable:\s1$', with the multiline flag (Score: 2 - Minor). This change should not affect the functionality but is more efficient in handling multi-line content. Overall, the changes appear to be positive and maintainable. Here's the summary:@@ -159,0 +161,4 @@msg: >WARNING: Proxmox firewall config path is:{{ pve_firewall_config}}when: pve_firewall_config is defined[Lines 159-164] [Score: 2] Added a new task to display Proxmox firewall config path.
@@ -184,3 +194,4 @@is search('^enable:\s*1$', multiline=True)}}- name: fail2ban | Warn if firewall not enabled[Lines 182-197] [Score: 2] Added a new task to debug the content of the firewall configuration if it exists but the firewall is not enabled. Modified the check for firewall enabled with a more efficient method.
❌ CI checks failed.
Leak: success
Lint: failure
Pull request closed