File tree Expand file tree Collapse file tree 2 files changed +20
-4
lines changed Expand file tree Collapse file tree 2 files changed +20
-4
lines changed Original file line number Diff line number Diff line change 5353 {{ intermediate_ca_csr_signed.data.issuing_ca }}
5454 when :
5555 - not vault_pki_intermediate_export | bool
56+ - intermediate_ca_csr.changed
57+ - intermediate_ca_csr.data is defined
5658
5759 - name : " Set Exported Intermediate as signed"
5860 hashivault_pki_ca_set :
7880 delegate_to : " {{ vault_pki_write_certificates_host }}"
7981 when :
8082 - vault_pki_write_int_ca_to_file | bool
83+ - intermediate_ca_csr.changed
84+ - intermediate_ca_csr.data is defined
8185
8286 - name : " Write out Intermediate Certs and keys to file"
8387 copy :
Original file line number Diff line number Diff line change 3131 vault_unseal_keys : " {{ vault_keys.keys_base64 }}"
3232
3333 - name : Configure PKI - create root/intermediate and generate certificates
34- include_role :
35- name : vault_pki
3634 vars :
3735 vault_pki_certificate_subject :
3836 - role : ' ServerCert'
6866 vault_pki_write_pem_bundle : false
6967 vault_pki_write_root_ca_to_file : true
7068 vault_token : " {{ vault_keys.root_token }}"
69+ block :
70+ - name : Configure PKI - create root/intermediate and generate certificates
71+ include_role :
72+ name : vault_pki
73+
74+ - name : Configure PKI - create root/intermediate and generate certificates (idempotence test)
75+ include_role :
76+ name : vault_pki
7177
7278 - name : Configure PKI - generate certificate pem bundle
73- include_role :
74- name : vault_pki
7579 vars :
7680 vault_pki_certificate_subject :
7781 - role : ' ServerCert'
8993 vault_pki_write_certificate_files : true
9094 vault_pki_write_pem_bundle : true
9195 vault_token : " {{ vault_keys.root_token }}"
96+ block :
97+ - name : Configure PKI - generate certificate pem bundle
98+ include_role :
99+ name : vault_pki
100+
101+ - name : Configure PKI - generate certificate pem bundle (idempotence test)
102+ include_role :
103+ name : vault_pki
92104
93105 - name : Validate if certificates exist
94106 stat :
You can’t perform that action at this time.
0 commit comments