15 lines
461 B
YAML
15 lines
461 B
YAML
|
---
|
||
|
- name: Copy certs and private key
|
||
|
copy:
|
||
|
content: "{{ item.src }}"
|
||
|
dest: "{{ item.dest }}"
|
||
|
mode: "{{ item.mode }}"
|
||
|
with_items:
|
||
|
- { src: "{{ unifi_tls_key_source }}", dest: '{{ unifi_tls_key_file }}', mode: '0600' }
|
||
|
- { src: "{{ unifi_tls_cert_source }}", dest: '{{ unifi_tls_cert_file }}', mode: '0750' }
|
||
|
loop_control:
|
||
|
label: "{{ item.dest }}"
|
||
|
register: __unifi_certs_content
|
||
|
become: True
|
||
|
become_user: "{{ unifi_user }}"
|