]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
gateway: Add task to write CA, key, and cert
authorDavid Galloway <dgallowa@redhat.com>
Mon, 21 Mar 2016 19:48:49 +0000 (15:48 -0400)
committerDavid Galloway <dgallowa@redhat.com>
Tue, 22 Mar 2016 18:57:19 +0000 (14:57 -0400)
Signed-off-by: David Galloway <dgallowa@redhat.com>
roles/gateway/tasks/main.yml

index 38808239ac691f217e8b756476dea53794946c87..656659406e72b6ba5eb62cb754593e824ae9bea2 100644 (file)
   tags:
     - users
 
+- name: Write CA, cert, and key
+  copy:
+    content: "{{ item.data }}"
+    dest: "{{ item.path }}"
+    mode: "{{ item.mode }}"
+  with_items: "{{ gateway_secrets }}"
+  no_log: true
+
 - name: Make sure OpenVPN service is running and enabled
   service:
     name: openvpn@server