You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To be able to manage ufw rules in Debian, you can use the community.general.ufw module from the community.general collection.
task file: ufw.yml
name: "Add ufw rules"
community.general.ufw:
rule: allow
port: "{{ item }}"
proto: tcp
with_items:
- "{{ (zookeeper_client_port }}"
- "{{ zookeeper_leader_port }}"
- "{{ zookeeper_election_port }}"
Add to the main.yaml task file:
include_tasks: ufw.yml
when: (ansible_os_family == "Debian") and zookeeper_ufw
Kind regards
Jens M. Kofoed
The text was updated successfully, but these errors were encountered:
Hi
To be able to manage ufw rules in Debian, you can use the community.general.ufw module from the community.general collection.
task file: ufw.yml
name: "Add ufw rules"
community.general.ufw:
rule: allow
port: "{{ item }}"
proto: tcp
with_items:
- "{{ (zookeeper_client_port }}"
- "{{ zookeeper_leader_port }}"
- "{{ zookeeper_election_port }}"
Add to the main.yaml task file:
when: (ansible_os_family == "Debian") and zookeeper_ufw
Kind regards
Jens M. Kofoed
The text was updated successfully, but these errors were encountered: