small fixes
This commit is contained in:
parent
1e624f5253
commit
4644a668f5
@ -7,7 +7,7 @@
|
||||
owner: "{{ unifi_user }}"
|
||||
group: "{{ unifi_group }}"
|
||||
recurse: True
|
||||
mode: 750
|
||||
mode: 0750
|
||||
with_items:
|
||||
- "{{ unifi_tls_certs_dir }}"
|
||||
- "{{ unifi_tls_key_dir }}"
|
||||
@ -25,7 +25,7 @@
|
||||
- { src: "{{ unifi_tls_cert_source }}", dest: '{{ unifi_tls_cert_file }}', mode: '0750' }
|
||||
loop_control:
|
||||
label: "{{ item.dest }}"
|
||||
register: __unifi_certs
|
||||
register: __unifi_certs_file
|
||||
when: unifi_tls_source_use_files
|
||||
|
||||
- name: Copy certs and private key (content)
|
||||
@ -38,7 +38,7 @@
|
||||
- { src: "{{ unifi_tls_cert_source }}", dest: '{{ unifi_tls_cert_file }}', mode: '0750' }
|
||||
loop_control:
|
||||
label: "{{ item.dest }}"
|
||||
register: __unifi_certs
|
||||
register: __unifi_certs_content
|
||||
when: unifi_tls_source_use_content
|
||||
become: True
|
||||
become_user: "{{ unifi_user }}"
|
||||
@ -87,4 +87,4 @@
|
||||
state: absent
|
||||
become: True
|
||||
become_user: "{{ unifi_user }}"
|
||||
when: __unifi_certs.changed
|
||||
when: __unifi_certs_file.changed or __unifi_certs_content.changed
|
||||
|
Loading…
Reference in New Issue
Block a user