diff --git a/tasks/tls.yml b/tasks/tls.yml index 587025d..ef6b7d4 100644 --- a/tasks/tls.yml +++ b/tasks/tls.yml @@ -16,8 +16,16 @@ mode: "{{item.mode }}" with_items: - { src: "{{ ucs_tls_key_path }}", dest: "{{ ucs_tls_certs_dir }}/ucs.pem", mode: '0600' } - - { src: "{{ ucs_tls_cert_path }}", dest: "{{ ucs_tls_key_dir }}/unifi.pem", mode: '0750' } + - { src: "{{ ucs_tls_cert_path }}", dest: "{{ ucs_tls_key_dir }}/ucs.pem", mode: '0750' } loop_control: label: "{{ item.dest }}" + + - name: Set necessary ucr vars + ucr: + path: "{{ item.path }}" + value: "{{ item.value }}" + with_items: + - { path: apache2/ssl/certificate, value: "{{ ucs_tls_certs_dir }}/ucs.pem" } + - { path: apache2/ssl/key, value: "{{ ucs_tls_key_dir }}/ucs.pem" } become: True become_user: root