Skip to content
Snippets Groups Projects
Unverified Commit 290bc993 authored by Julien BONACHERA's avatar Julien BONACHERA
Browse files

append newline char to vault generated certs

parent 79417e07
No related branches found
No related tags found
No related merge requests found
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
- name: bootstrap/ca_trust | add CA to trusted CA dir - name: bootstrap/ca_trust | add CA to trusted CA dir
copy: copy:
content: "{{ vault_cert_file_cat.get('stdout') }}" content: "{{ vault_cert_file_cat.get('stdout') }}\n"
dest: "{{ ca_cert_path }}" dest: "{{ ca_cert_path }}"
register: vault_ca_cert register: vault_ca_cert
......
...@@ -83,7 +83,7 @@ ...@@ -83,7 +83,7 @@
- name: "issue_cert | Copy {{ issue_cert_path }} cert to all hosts" - name: "issue_cert | Copy {{ issue_cert_path }} cert to all hosts"
copy: copy:
content: "{{ issue_cert_result['json']['data']['certificate'] }}" content: "{{ issue_cert_result['json']['data']['certificate'] }}\n"
dest: "{{ issue_cert_path }}" dest: "{{ issue_cert_path }}"
group: "{{ issue_cert_file_group | d('root' )}}" group: "{{ issue_cert_file_group | d('root' )}}"
mode: "{{ issue_cert_file_mode | d('0644') }}" mode: "{{ issue_cert_file_mode | d('0644') }}"
...@@ -99,7 +99,7 @@ ...@@ -99,7 +99,7 @@
- name: issue_cert | Copy issuing CA cert - name: issue_cert | Copy issuing CA cert
copy: copy:
content: "{{ issue_cert_result['json']['data']['issuing_ca'] }}" content: "{{ issue_cert_result['json']['data']['issuing_ca'] }}\n"
dest: "{{ issue_cert_path | dirname }}/ca.pem" dest: "{{ issue_cert_path | dirname }}/ca.pem"
group: "{{ issue_cert_file_group | d('root' )}}" group: "{{ issue_cert_file_group | d('root' )}}"
mode: "{{ issue_cert_file_mode | d('0644') }}" mode: "{{ issue_cert_file_mode | d('0644') }}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment