From d4949a5aed234ae13c5565b31ea271e6fae3dfcf Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Wed, 25 Mar 2020 00:14:04 +0100 Subject: [PATCH] Use correct module --- ansible/post-deploy.yml | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/ansible/post-deploy.yml b/ansible/post-deploy.yml index 8c9272b..9ea6637 100644 --- a/ansible/post-deploy.yml +++ b/ansible/post-deploy.yml @@ -25,17 +25,12 @@ args: creates: /home/dokku/keycloak/letsencrypt/cron-job - - name: Create volume mount configuration directories - file: - path: "{{ item }}" - state: directory - owner: dokku - group: dokku - with_items: - - "/home/dokku/keycloak/letsencrypt/certs/current/key.pem:/etc/x509/https/tls.key" - - "/home/dokku/keycloak/letsencrypt/certs/current/cert.pem:/etc/x509/https/tls.crt" - become: true - register: volume_mounts + - name: Specify certificate docker volume mounts + dokku_storage: + app: keycloak + mounts: + - "/home/dokku/keycloak/letsencrypt/certs/current/key.pem:/etc/x509/https/tls.key" + - "/home/dokku/keycloak/letsencrypt/certs/current/cert.pem:/etc/x509/https/tls.crt" - name: Remove automatically configured ports dokku_ports: