create fullchain of host certificate
This commit is contained in:
parent
5dc54dd8eb
commit
4dedb4f2d0
1 changed files with 7 additions and 0 deletions
|
@ -30,6 +30,13 @@
|
||||||
owner: root
|
owner: root
|
||||||
group: "{{ ansible_wheel }}"
|
group: "{{ ansible_wheel }}"
|
||||||
|
|
||||||
|
- name: create full chain of host certficate and ca
|
||||||
|
shell: "cat {{ tls_certs }}/{{ inventory_hostname }}.crt \
|
||||||
|
{{ tls_certs }}/ca.crt > \
|
||||||
|
{{ tls_certs }}/{{ inventory_hostname }}-fullchain.crt"
|
||||||
|
args:
|
||||||
|
creates: "{{ tls_certs }}/{{ inventory_hostname }}-fullchain.crt"
|
||||||
|
|
||||||
- name: copy host key
|
- name: copy host key
|
||||||
copy:
|
copy:
|
||||||
src: "/srv/ca/private/{{ inventory_hostname }}.key"
|
src: "/srv/ca/private/{{ inventory_hostname }}.key"
|
||||||
|
|
Loading…
Add table
Reference in a new issue