set ucs variables

This commit is contained in:
Robert Kaussow 2018-08-04 22:48:43 +02:00
parent 2bf5cb5ba4
commit 9f96b7845f

View File

@ -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