Change the avatar dir conditional.

This commit is contained in:
Andrea Dell'Amico 2022-10-11 10:57:02 +02:00
parent ab911469e5
commit 4c8ef3eca1
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
1 changed files with 1 additions and 6 deletions

View File

@ -43,11 +43,6 @@
mode: 0750
tags: [ keycloak, keycloak_data_dir ]
- name Check if the avatars directory exists.
stat:
path: '{{ keycloak_external_avatar_dir }}'
register: avatar_dir_creation
- name: Avatar directory
ansible.builtin.file:
dest: '{{ keycloak_external_avatar_dir }}'
@ -55,6 +50,6 @@
owner: '{{ keycloak_user }}'
group: '{{ keycloak_user }}'
mode: 0750
when: avatar_dir_creation.stat.isdir is not defined
when: not keycloak_external_avatar_dir_enabled
tags: keycloak