From 5161f2337d3187c257bbe7da3667f28efda720f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Mon, 6 May 2019 11:36:45 +0200 Subject: [PATCH] parametrize consul service address MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jakub SokoĊ‚owski --- defaults/main.yml | 1 + tasks/consul.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/defaults/main.yml b/defaults/main.yml index 53b4e89..2e3f77e 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -60,6 +60,7 @@ geth_cache: 1536 geth_public_addr: '{{ ansible_host }}' # Consul config +geth_consul_address: '{{ ansible_host }}' geth_consul_enabled: true geth_consul_default_tags: - geth diff --git a/tasks/consul.yml b/tasks/consul.yml index 8a563ef..9f0407b 100644 --- a/tasks/consul.yml +++ b/tasks/consul.yml @@ -21,6 +21,7 @@ - name: '{{ geth_cont_name }}' tags: '{{ geth_consul_tags }}' port: '{{ geth_port }}' + address: '{{ geth_consul_address }}' meta: env: '{{ env }}' stage: '{{ stage }}'