From 4baa61e0cfe678d6c285d6ae9f6c2025274a816a Mon Sep 17 00:00:00 2001 From: Xabier Davila Date: Thu, 30 Jun 2022 16:15:48 +0200 Subject: [PATCH] Use sudo for tasks that will otherwise fail --- roles/keycloak_quarkus/tasks/main.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roles/keycloak_quarkus/tasks/main.yml b/roles/keycloak_quarkus/tasks/main.yml index cf855a2..738b55e 100644 --- a/roles/keycloak_quarkus/tasks/main.yml +++ b/roles/keycloak_quarkus/tasks/main.yml @@ -28,6 +28,7 @@ owner: "{{ keycloak.service_user }}" group: "{{ keycloak.service_group }}" mode: 0644 + become: yes notify: - restart keycloak @@ -38,6 +39,7 @@ owner: "{{ keycloak.service_user }}" group: "{{ keycloak.service_group }}" mode: 0644 + become: yes notify: - restart keycloak @@ -48,6 +50,7 @@ owner: "{{ keycloak.service_user }}" group: "{{ keycloak.service_group }}" mode: 0775 + become: yes - name: "Start and wait for keycloak service" ansible.builtin.include_tasks: start.yml @@ -63,3 +66,4 @@ src: "{{ keycloak.home }}/{{ keycloak.log.file | dirname }}" dest: /var/log/keycloak force: yes + become: yes