File tree Expand file tree Collapse file tree 4 files changed +2
-4
lines changed
Expand file tree Collapse file tree 4 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,6 @@ Role Variables
5050 - ` zk_rolling_log_file_max_size ` - zookeeper log file size default: ` 10MB `
5151 - ` zk_max_rolling_log_file_count ` - zookeeper log file count default: ` 10 `
5252 - ` zk_inventory_group ` - zookeeper inventory group name default: ` zookeeper `
53- - ` zk_host_ip ` - expression to get zookeeper IP address default: ` {{ ansible_default_ipv4.address }} `
5453
5554Dependencies
5655------------
Original file line number Diff line number Diff line change @@ -21,4 +21,3 @@ zk_tarball_dir: /opt/src
2121zk_rolling_log_file_max_size : 10MB
2222zk_max_rolling_log_file_count : 10
2323zk_inventory_group : zookeeper
24- zk_host_ip : ' {{ ansible_default_ipv4.address }}'
Original file line number Diff line number Diff line change 11{% - set ips = [] %}
22{% - for host in groups [zk_inventory_group ] %}
3- {{- ips.append(dict(id=loop.index, host=host, ip=hostvars[host] .zk_host_ip )) }}
3+ {{- ips.append(dict(id=loop.index, host=host, ip=hostvars[host] ['ansible_default_ipv4 '] .address )) }}
44{% - endfor %}
55{% for server in ips %}
66{% if server .host is defined %}
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ autopurge.snapRetainCount={{ zk_autopurge_snapRetainCount }}
1212
1313{% - set ips = [] %}
1414{% - for host in groups [zk_inventory_group ] %}
15- {{- ips.append(dict(id=loop.index, host=host, ip=hostvars[host] .zk_host_ip )) }}
15+ {{- ips.append(dict(id=loop.index, host=host, ip=hostvars[host] ['ansible_default_ipv4 '] .address )) }}
1616{% - endfor %}
1717
1818{% for server in ips %}
You can’t perform that action at this time.
0 commit comments