From c2e456e1d55ad8943c5f053d1e05b3f3fc0ce14f Mon Sep 17 00:00:00 2001
From: avskor <avskor@gmail.com>
Date: Thu, 4 Apr 2024 11:22:18 +0300
Subject: [PATCH] Fix #125. Permission error when the become variable is set to
 true in the playbook

---
 roles/keycloak_quarkus/tasks/install.yml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/roles/keycloak_quarkus/tasks/install.yml b/roles/keycloak_quarkus/tasks/install.yml
index e865b72..0162266 100644
--- a/roles/keycloak_quarkus/tasks/install.yml
+++ b/roles/keycloak_quarkus/tasks/install.yml
@@ -50,6 +50,7 @@
     path: "{{ lookup('env', 'PWD') }}"
   register: local_path
   delegate_to: localhost
+  become: false
 
 - name: Download keycloak archive
   ansible.builtin.get_url: # noqa risky-file-permissions delegated, uses controller host user
@@ -57,6 +58,7 @@
     dest: "{{ local_path.stat.path }}/{{ keycloak.bundle }}"
     mode: 0640
   delegate_to: localhost
+  become: false
   run_once: true
   when:
     - archive_path is defined