From e2285fe64815d1723ddff4801caef14d60b36bf5 Mon Sep 17 00:00:00 2001 From: Doug Greenbaum Date: Fri, 17 Feb 2017 20:31:17 -0700 Subject: [PATCH] Writing TLS config for bootstrap and client nodes --- tasks/tls.yml | 10 +++++++--- .../{config_server_tls.json.j2 => config_tls.json.j2} | 0 2 files changed, 7 insertions(+), 3 deletions(-) rename templates/{config_server_tls.json.j2 => config_tls.json.j2} (100%) diff --git a/tasks/tls.yml b/tasks/tls.yml index 2d340ff4..6a3afa17 100644 --- a/tasks/tls.yml +++ b/tasks/tls.yml @@ -14,6 +14,10 @@ - name: Copy server key copy: "src={{ consul_src_files }}/{{ consul_server_key }} dest={{ consul_tls_dir }}/{{ consul_server_key }}" when: consul_copy_keys == true - -- name: Server TLS configuration - template: "src=config_server_tls.json.j2 dest={{ consul_config_path }}/server/config_server_tls.json" + +- name: Write TLS configuration + template: "src=config_tls.json.j2 dest={{ consul_config_path }}/{{ item }}/config_tls.json" + with_items: + - "bootstrap" + - "client" + - "server" diff --git a/templates/config_server_tls.json.j2 b/templates/config_tls.json.j2 similarity index 100% rename from templates/config_server_tls.json.j2 rename to templates/config_tls.json.j2