From 4c80707b1c8c414f52f76d7e8376d0a72fe7c384 Mon Sep 17 00:00:00 2001 From: ace Date: Thu, 12 Jan 2023 18:52:45 +0300 Subject: [PATCH] add bind_addr and verbosity for logging --- defaults/main.yaml | 1 + tasks/pre_check.yaml | 3 +++ 2 files changed, 4 insertions(+) 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