Skip to content

Commit

Permalink
fix ternary logic
Browse files Browse the repository at this point in the history
  • Loading branch information
barnabasbusa committed Jun 20, 2024
1 parent f27c935 commit 5b2db93
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ansible/group_vars/all/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@ fail2ban_ignoreips:
# role: ethpandaops.general.docker_network
docker_network_name: shared
docker_network_enable_ipv6: "{{ global_ipv6_enabled }}"
docker_network_ipam_config: []
docker_network_ipam_config: >-
{{ global_ipv6_enabled | default(false) | ternary(
[ { 'subnet': ansible_default_ipv6.address | default('::1') | ansible.utils.ipsubnet(global_ipv6_subnet_ranges[hostvars[inventory_hostname]['cloud']]) } ]
, [])
}}
docker_networks_shared:
- name: "{{ docker_network_name }}"
Expand Down

0 comments on commit 5b2db93

Please sign in to comment.