diff --git a/defaults/main.yml b/defaults/main.yml index 76ad926..98bb9eb 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -58,6 +58,7 @@ geth_cache: 1536 geth_public_addr: '{{ ansible_host }}' # Consul config +geth_consul_enabled: true geth_consul_default_tags: - geth - '{{ env }}.{{ stage }}' diff --git a/tasks/main.yml b/tasks/main.yml index 363b68a..1b993b0 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -4,3 +4,4 @@ - import_tasks: firewall.yml - import_tasks: save_enode.yml - import_tasks: consul.yml + when: geth_consul_enabled