mirror of
https://github.com/k3s-io/k3s-ansible.git
synced 2025-12-25 00:12:37 +01:00
fix: rewrite ufw exceptions condition (#403)
Signed-off-by: Rafael Alexandre <r.alexandre99@gmail.com>
This commit is contained in:
@@ -42,7 +42,7 @@
|
||||
|
||||
- name: If ufw enabled, open api port
|
||||
when:
|
||||
- ufw_status['stdout'] == "Status':' active"
|
||||
- "'Status: active' in ufw_status['stdout']"
|
||||
community.general.ufw:
|
||||
rule: allow
|
||||
port: "{{ api_port }}"
|
||||
@@ -50,7 +50,7 @@
|
||||
|
||||
- name: If ufw enabled, open etcd ports
|
||||
when:
|
||||
- ufw_status['stdout'] == "Status':' active"
|
||||
- "'Status: active' in ufw_status['stdout']"
|
||||
- groups[server_group] | length > 1
|
||||
community.general.ufw:
|
||||
rule: allow
|
||||
@@ -59,7 +59,7 @@
|
||||
|
||||
- name: If ufw enabled, allow default CIDRs
|
||||
when:
|
||||
- ufw_status['stdout'] == "Status':' active"
|
||||
- "'Status: active' in ufw_status['stdout']"
|
||||
community.general.ufw:
|
||||
rule: allow
|
||||
src: '{{ item }}'
|
||||
|
||||
Reference in New Issue
Block a user