|
@@ -4,7 +4,7 @@
|
|
|
path: "{{ etcd_generated_certs_dir }}/{{ item.etcd_cert_subdir }}"
|
|
|
state: directory
|
|
|
mode: 0700
|
|
|
- with_items: etcd_needing_server_certs | default([])
|
|
|
+ with_items: "{{ etcd_needing_server_certs | default([]) }}"
|
|
|
|
|
|
- name: Create the server csr
|
|
|
command: >
|
|
@@ -19,7 +19,7 @@
|
|
|
~ item.etcd_cert_prefix ~ 'server.csr' }}"
|
|
|
environment:
|
|
|
SAN: "IP:{{ item.etcd_ip }}"
|
|
|
- with_items: etcd_needing_server_certs | default([])
|
|
|
+ with_items: "{{ etcd_needing_server_certs | default([]) }}"
|
|
|
|
|
|
- name: Sign and create the server crt
|
|
|
command: >
|
|
@@ -33,7 +33,7 @@
|
|
|
~ item.etcd_cert_prefix ~ 'server.crt' }}"
|
|
|
environment:
|
|
|
SAN: "IP:{{ item.etcd_ip }}"
|
|
|
- with_items: etcd_needing_server_certs | default([])
|
|
|
+ with_items: "{{ etcd_needing_server_certs | default([]) }}"
|
|
|
|
|
|
- name: Create the peer csr
|
|
|
command: >
|
|
@@ -48,7 +48,7 @@
|
|
|
~ item.etcd_cert_prefix ~ 'peer.csr' }}"
|
|
|
environment:
|
|
|
SAN: "IP:{{ item.etcd_ip }}"
|
|
|
- with_items: etcd_needing_server_certs | default([])
|
|
|
+ with_items: "{{ etcd_needing_server_certs | default([]) }}"
|
|
|
|
|
|
- name: Sign and create the peer crt
|
|
|
command: >
|
|
@@ -62,10 +62,10 @@
|
|
|
~ item.etcd_cert_prefix ~ 'peer.crt' }}"
|
|
|
environment:
|
|
|
SAN: "IP:{{ item.etcd_ip }}"
|
|
|
- with_items: etcd_needing_server_certs | default([])
|
|
|
+ with_items: "{{ etcd_needing_server_certs | default([]) }}"
|
|
|
|
|
|
- file:
|
|
|
src: "{{ etcd_ca_cert }}"
|
|
|
dest: "{{ etcd_generated_certs_dir}}/{{ item.etcd_cert_subdir }}/{{ item.etcd_cert_prefix }}ca.crt"
|
|
|
state: hard
|
|
|
- with_items: etcd_needing_server_certs | default([])
|
|
|
+ with_items: "{{ etcd_needing_server_certs | default([]) }}"
|