From 9f96b7845f6fd9824d9cb31534565e1a60420c60 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sat, 4 Aug 2018 22:48:43 +0200 Subject: [PATCH] set ucs variables --- tasks/tls.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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