From fc9c6d423ab485abde7d5dd9bf11cc3a86e442dc Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Tue, 29 Nov 2022 17:28:27 +0100 Subject: [PATCH] Ensure the data/tmp directory ownership. --- tasks/keycloak-install.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/tasks/keycloak-install.yml b/tasks/keycloak-install.yml index 06ecfa2..4a255b2 100644 --- a/tasks/keycloak-install.yml +++ b/tasks/keycloak-install.yml @@ -1,5 +1,6 @@ --- - name: Install the keycloak distribution + tags: keycloak block: - name: Create the keycloak user ansible.builtin.user: @@ -34,6 +35,15 @@ mode: 0750 tags: [ keycloak, keycloak_data_dir ] + - name: Set the permissions of the {{ keycloak_data_directory }}/tmp directory + ansible.builtin.file: + dest: '{{ keycloak_data_directory }}/tmp' + state: directory + owner: '{{ keycloak_user }}' + group: '{{ keycloak_user }}' + mode: 0750 + tags: [ keycloak, keycloak_data_dir ] + - name: Set the permissions of the {{ keycloak_runtime_home }}/lib/quarkus directory ansible.builtin.file: dest: '{{ keycloak_runtime_home }}/lib/quarkus' @@ -52,4 +62,3 @@ mode: 0750 when: not keycloak_external_avatar_dir_enabled - tags: keycloak