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
|
- name: If ufw enabled, open api port
|
||||||
when:
|
when:
|
||||||
- ufw_status['stdout'] == "Status':' active"
|
- "'Status: active' in ufw_status['stdout']"
|
||||||
community.general.ufw:
|
community.general.ufw:
|
||||||
rule: allow
|
rule: allow
|
||||||
port: "{{ api_port }}"
|
port: "{{ api_port }}"
|
||||||
@@ -50,7 +50,7 @@
|
|||||||
|
|
||||||
- name: If ufw enabled, open etcd ports
|
- name: If ufw enabled, open etcd ports
|
||||||
when:
|
when:
|
||||||
- ufw_status['stdout'] == "Status':' active"
|
- "'Status: active' in ufw_status['stdout']"
|
||||||
- groups[server_group] | length > 1
|
- groups[server_group] | length > 1
|
||||||
community.general.ufw:
|
community.general.ufw:
|
||||||
rule: allow
|
rule: allow
|
||||||
@@ -59,7 +59,7 @@
|
|||||||
|
|
||||||
- name: If ufw enabled, allow default CIDRs
|
- name: If ufw enabled, allow default CIDRs
|
||||||
when:
|
when:
|
||||||
- ufw_status['stdout'] == "Status':' active"
|
- "'Status: active' in ufw_status['stdout']"
|
||||||
community.general.ufw:
|
community.general.ufw:
|
||||||
rule: allow
|
rule: allow
|
||||||
src: '{{ item }}'
|
src: '{{ item }}'
|
||||||
|
|||||||
Reference in New Issue
Block a user