Force some log files permissions

This commit is contained in:
Andrea Dell'Amico 2020-10-19 17:41:46 +02:00
parent e034937594
commit a7a0ba2b05
1 changed files with 6 additions and 0 deletions

View File

@ -15,6 +15,12 @@
- name: Create the keycloak log directory
file: dest={{ keycloak_log_directory }} state=directory owner={{ keycloak_user }} group={{ keycloak_user }} mode='0755'
- name: Create some log files with the correct permissions
file: dest={{ keycloak_log_directory }}/{{ item }} owner={{ keycloak_user }} group={{ keycloak_user }} mode='0644' state=touch
with_items:
- 'server.log'
- 'audit.log'
- name: Fix the permissions of some keycloak directories
file: dest={{ keycloak_install_dir }}/{{ keycloak_distribution }}/{{ keycloak_wildfly_mode }}/{{ item }} state=directory owner={{ keycloak_user }} group={{ keycloak_user }} mode='0750' recurse=yes
with_items: '{{ keycloak_owned_directories }}'