Skip to content

Commit 297de4a

Browse files
ViachaslauKabaktgadiev
authored andcommitted
fix (#6)
* fix * fix typo
1 parent 65add40 commit 297de4a

File tree

4 files changed

+2
-4
lines changed

4 files changed

+2
-4
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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

5554
Dependencies
5655
------------

defaults/main.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,3 @@ zk_tarball_dir: /opt/src
2121
zk_rolling_log_file_max_size: 10MB
2222
zk_max_rolling_log_file_count: 10
2323
zk_inventory_group: zookeeper
24-
zk_host_ip: '{{ ansible_default_ipv4.address }}'

templates/myid.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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 %}

templates/zoo.cfg.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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 %}

0 commit comments

Comments
 (0)