diff --git a/defaults/main.yaml b/defaults/main.yaml index 4d0cfdd..48fa989 100644 --- a/defaults/main.yaml +++ b/defaults/main.yaml @@ -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 }}" diff --git a/tasks/pre_check.yaml b/tasks/pre_check.yaml index edce063..ad97c26 100644 --- a/tasks/pre_check.yaml +++ b/tasks/pre_check.yaml @@ -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