Unverified Commit f3d8cc0b authored by Rafael Alexandre's avatar Rafael Alexandre Committed by GitHub
Browse files

fix: rewrite ufw exceptions condition (#403)

parent 6809dc89
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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 }}'