-
-
Notifications
You must be signed in to change notification settings - Fork 415
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add firewalld/ufw support #722
base: master
Are you sure you want to change the base?
Conversation
@redy01 Hi, I completed all the settings, started running the ansible playbook-playbook deploy_pgcluster.yml and I get an error: vars/system.yml
|
try to define three roles in the playbook instead of role: "fw_{{ firewall_type }}", each with its own condition Example: roles:
- role: fw_iptables
vars:
firewall_allowed_tcp_ports: "{{ firewall_ports_dynamic_var | default([]) | unique }}"
firewall_additional_rules: "{{ firewall_rules_dynamic_var | default([]) | unique }}"
when: firewall_type == 'iptables' and firewall_enabled_at_boot | bool
tags: firewall
- role: fw_firewalld
vars:
firewall_allowed_tcp_ports: "{{ firewall_ports_dynamic_var | default([]) | unique }}"
when: firewall_type == 'firewalld' and firewall_enabled_at_boot | bool
tags: firewall
- role: fw_ufw
vars:
firewall_allowed_tcp_ports: "{{ firewall_ports_dynamic_var | default([]) | unique }}"
when: firewall_type == 'ufw' and firewall_enabled_at_boot | bool
tags: firewall This approach increases clarity and can sometimes simplify troubleshooting by making the playbook's flow more explicit. |
Please note that the ansible code has been moved to the |
hi has there been any development on this ? Thanks :) great work guys |
No description provided.