add bind_addr and verbosity for logging

This commit is contained in:
ace 2023-01-12 18:52:45 +03:00
parent 745c1b5dc0
commit 4c80707b1c
Signed by: ace
GPG Key ID: 2C08973DD37A76FD
2 changed files with 4 additions and 0 deletions

View File

@ -11,6 +11,7 @@ consul_agent_group: consul_agent
consul_config: {}
consul_default_config:
bind_addr: "{{ ansible_default_ipv4.address }}"
server: "{{ true if inventory_hostname in groups[consul_server_group] else false }}"
ui_config:
enabled: "{{ true if inventory_hostname in groups[consul_server_group] else false }}"

View File

@ -14,10 +14,12 @@
- name: Print cluster nodes
debug:
msg: "{{ cluster_nodes.stdout }}"
verbosity: 2
- name: Print cluster nodes
debug:
msg: "{{ item }}"
verbosity: 2
loop: "{{ cluster_nodes.stdout | from_json }}"
- name: Merge cluster nodes list
@ -28,6 +30,7 @@
- name: Print cluster nodes list
debug:
msg: "{{ cluster_node_list }}"
verbosity: 2
run_once: true
ignore_errors: yes