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_config: {}
|
||||||
consul_default_config:
|
consul_default_config:
|
||||||
|
bind_addr: "{{ ansible_default_ipv4.address }}"
|
||||||
server: "{{ true if inventory_hostname in groups[consul_server_group] else false }}"
|
server: "{{ true if inventory_hostname in groups[consul_server_group] else false }}"
|
||||||
ui_config:
|
ui_config:
|
||||||
enabled: "{{ true if inventory_hostname in groups[consul_server_group] else false }}"
|
enabled: "{{ true if inventory_hostname in groups[consul_server_group] else false }}"
|
||||||
|
@ -14,10 +14,12 @@
|
|||||||
- name: Print cluster nodes
|
- name: Print cluster nodes
|
||||||
debug:
|
debug:
|
||||||
msg: "{{ cluster_nodes.stdout }}"
|
msg: "{{ cluster_nodes.stdout }}"
|
||||||
|
verbosity: 2
|
||||||
|
|
||||||
- name: Print cluster nodes
|
- name: Print cluster nodes
|
||||||
debug:
|
debug:
|
||||||
msg: "{{ item }}"
|
msg: "{{ item }}"
|
||||||
|
verbosity: 2
|
||||||
loop: "{{ cluster_nodes.stdout | from_json }}"
|
loop: "{{ cluster_nodes.stdout | from_json }}"
|
||||||
|
|
||||||
- name: Merge cluster nodes list
|
- name: Merge cluster nodes list
|
||||||
@ -28,6 +30,7 @@
|
|||||||
- name: Print cluster nodes list
|
- name: Print cluster nodes list
|
||||||
debug:
|
debug:
|
||||||
msg: "{{ cluster_node_list }}"
|
msg: "{{ cluster_node_list }}"
|
||||||
|
verbosity: 2
|
||||||
|
|
||||||
run_once: true
|
run_once: true
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
|
Loading…
x
Reference in New Issue
Block a user