use dot notation instead of dict access

This commit is contained in:
nd 2020-05-22 14:48:33 +02:00
parent 87e3f3dd39
commit eeb4b3cc93
No known key found for this signature in database
GPG key ID: 21B5CD4DEE3670E9

View file

@ -64,7 +64,7 @@
register: cafile
- name: "write csr to ca folder ({{ certname }})"
copy:
content: "{{ csrfile['content'] | b64decode }}"
content: "{{ csrfile.content | b64decode }}"
dest: "{{ remotecsrpath }}"
- name: "sign certificate for {{ certname }}"
register: casignedsign
@ -82,11 +82,11 @@
- name: "write crt ({{ certname }})"
copy:
content: "{{ crtfile['content'] | b64decode }}"
content: "{{ crtfile.content | b64decode }}"
dest: "{{ cert.certpath }}"
- name: "write ca ({{ certname }})"
copy:
content: "{{ cafile['content'] | b64decode }}"
content: "{{ cafile.content | b64decode }}"
dest: "{{ cert.capath }}"
- name: "generate concatinated versions (chain) for {{ certname }}"
shell: "umask 0137; cat {{ cert.certpath }} {{ cert.capath }} > {{ cert.chainpath }}"