diff --git a/ansible/roles/consul/tasks/main.yml b/ansible/roles/consul/tasks/main.yml index e00c13666..f9a866e10 100644 --- a/ansible/roles/consul/tasks/main.yml +++ b/ansible/roles/consul/tasks/main.yml @@ -25,7 +25,7 @@ register: consul_manager_ip delegate_to: 127.0.0.1 -- name: Write Manager IP to {{ ansible_ssh_host }} +- name: "Write Manager IP to {{ ansible_ssh_host }}" copy: content: "{{ consul_manager_ip.stdout|trim }}" dest: /srv/newsblur/consul/consul_manager_ip.txt diff --git a/ansible/setup_app.yml b/ansible/setup_app.yml index 4c41dd860..32b67eb59 100644 --- a/ansible/setup_app.yml +++ b/ansible/setup_app.yml @@ -11,5 +11,6 @@ - base - docker - web + - {role: 'consul', tags: 'consul'} - {role: 'nginx', tags: 'nginx'} - consul-client diff --git a/ansible/setup_elasticsearch.yml b/ansible/setup_elasticsearch.yml index 5dd0d45b1..b776cfcd4 100644 --- a/ansible/setup_elasticsearch.yml +++ b/ansible/setup_elasticsearch.yml @@ -11,5 +11,6 @@ - base - docker - repo + - {role: 'consul', tags: 'consul'} - elasticsearch - consul-client diff --git a/ansible/setup_mongo.yml b/ansible/setup_mongo.yml index 0c718babe..075912a8f 100644 --- a/ansible/setup_mongo.yml +++ b/ansible/setup_mongo.yml @@ -12,5 +12,6 @@ - base - docker - repo + - {role: 'consul', tags: 'consul'} - mongo - consul-client diff --git a/ansible/setup_node.yml b/ansible/setup_node.yml index 1aec79662..2f608adfd 100644 --- a/ansible/setup_node.yml +++ b/ansible/setup_node.yml @@ -13,6 +13,7 @@ - base - docker - repo + - {role: 'consul', tags: 'consul'} - node - consul-client diff --git a/ansible/setup_postgres.yml b/ansible/setup_postgres.yml index 797becbb3..6bca37ba9 100644 --- a/ansible/setup_postgres.yml +++ b/ansible/setup_postgres.yml @@ -13,5 +13,6 @@ - base - docker - repo + - {role: 'consul', tags: 'consul'} - postgres - consul-client diff --git a/ansible/setup_redis.yml b/ansible/setup_redis.yml index 126b78c27..f696c9bd6 100644 --- a/ansible/setup_redis.yml +++ b/ansible/setup_redis.yml @@ -11,5 +11,6 @@ - base - docker - repo + - {role: 'consul', tags: 'consul'} - redis - consul-client diff --git a/ansible/setup_task.yml b/ansible/setup_task.yml index a3920075f..92c8de7d5 100644 --- a/ansible/setup_task.yml +++ b/ansible/setup_task.yml @@ -11,5 +11,6 @@ - base - docker - repo + - {role: 'consul', tags: 'consul'} - celery_task - - consul-client \ No newline at end of file + - consul-client diff --git a/ansible/setup_www.yml b/ansible/setup_www.yml index a9b73962f..f1ccf0e48 100644 --- a/ansible/setup_www.yml +++ b/ansible/setup_www.yml @@ -8,10 +8,11 @@ - env_vars/base.yml roles: - - base - - docker - - {role: 'repo', tags: 'repo'} - - {role: 'letsencrypt', tags: 'letsencrypt'} - - monitor - - consul-client - - {role: 'haproxy', tags: 'haproxy'} + - base + - docker + - {role: 'repo', tags: 'repo'} + - {role: 'letsencrypt', tags: 'letsencrypt'} + - monitor + - {role: 'consul', tags: 'consul'} + - consul-client + - {role: 'haproxy', tags: 'haproxy'}