mirror of
https://github.com/ansible-middleware/keycloak.git
synced 2025-07-31 00:51:34 -07:00
Rework Molecule prepare phase to install sudo only if root on target
This commit is contained in:
parent
d74820190f
commit
a59a1fb8dd
4 changed files with 22 additions and 19 deletions
|
@ -49,8 +49,9 @@
|
|||
- keycloak_log_folder.stat.exists
|
||||
- not keycloak_log_folder.stat.isdir
|
||||
- keycloak_log_folder.stat.islnk
|
||||
|
||||
|
||||
- name: Check log file
|
||||
become: yes
|
||||
ansible.builtin.stat:
|
||||
path: "/tmp/keycloak/keycloak.log"
|
||||
register: keycloak_log_file
|
||||
|
@ -62,6 +63,7 @@
|
|||
- not keycloak_log_file.stat.isdir
|
||||
|
||||
- name: Check default log folder
|
||||
become: yes
|
||||
ansible.builtin.stat:
|
||||
path: "/var/log/keycloak"
|
||||
register: keycloak_default_log_folder
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue