Skip to content

Commit

Permalink
fix: syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanfaircloth committed Dec 5, 2024
1 parent fe1f819 commit 40a5c14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,15 +145,15 @@
permanent: true
state: enabled
immediate: true
when: "kafka_firewall_add_rules and ansible_os_family == 'RedHat' and 'controller' in hostvars[item]['kafka_node_roles'] | default(kafka_node_roles)"
when: "kafka_firewall_add_rules and ansible_os_family == 'RedHat' and 'controller' in (hostvars[item]['kafka_node_roles'] | default(kafka_node_roles))"

- name: Allow Firewall Broker Traffic
ansible.posix.firewalld:
port: 9093/tcp
permanent: true
state: enabled
immediate: true
when: "kafka_firewall_add_rules and ansible_os_family == 'RedHat' and 'broker' in hostvars[item]['kafka_node_roles'] | default(kafka_node_roles)"
when: "kafka_firewall_add_rules and ansible_os_family == 'RedHat' and 'broker' in (hostvars[item]['kafka_node_roles'] | default(kafka_node_roles))"

- name: Install Kafka service definition
become: true
Expand Down

0 comments on commit 40a5c14

Please sign in to comment.