Ensure the data/tmp directory ownership.

This commit is contained in:
Andrea Dell'Amico 2022-11-29 17:28:27 +01:00
parent 4c8ef3eca1
commit fc9c6d423a
Signed by untrusted user: adellam
GPG Key ID: 147ABE6CEB9E20FF
1 changed files with 10 additions and 1 deletions

View File

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