From 8b50fce6919f9aa1040d8a7df8c54e347450c3e3 Mon Sep 17 00:00:00 2001 From: Alex Date: Mon, 25 May 2020 21:37:36 +0200 Subject: [PATCH] Fix cert copy --- tasks/main.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tasks/main.yml b/tasks/main.yml index 57cc887..fbb92c2 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,9 +1,21 @@ - name: Include sensitive info include_vars: dir: '{{ role_path }}/vault' + depth: 1 tags: - vault - hitch +- name: Copy certificate + copy: + follow: yes + src: "{{ role_path }}/vault/certs/cert.pem.enc" + dest: "/etc/ssl/private/cert.pem" + owner: "root" + group: "root" + mode: "600" + tags: + - hitch + - vault - name: Copy Hitch configuration template: follow: yes