Force some log files permissions
This commit is contained in:
parent
e034937594
commit
a7a0ba2b05
|
@ -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 }}'
|
||||
|
|
Loading…
Reference in New Issue