mirror of
https://gitea.0xace.cc/ansible-galaxy/consul.git
synced 2025-04-05 21:51:57 +00:00
add bind_addr and verbosity for logging
This commit is contained in:
parent
745c1b5dc0
commit
4c80707b1c
@ -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 }}"
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user