mirror of
https://github.com/ansible-middleware/keycloak.git
synced 2026-07-30 03:14:48 +00:00
Fix #125. Permission error when the become variable is set to true in the playbook
This commit is contained in:
@@ -50,6 +50,7 @@
|
|||||||
path: "{{ lookup('env', 'PWD') }}"
|
path: "{{ lookup('env', 'PWD') }}"
|
||||||
register: local_path
|
register: local_path
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
|
become: false
|
||||||
|
|
||||||
- name: Download keycloak archive
|
- name: Download keycloak archive
|
||||||
ansible.builtin.get_url: # noqa risky-file-permissions delegated, uses controller host user
|
ansible.builtin.get_url: # noqa risky-file-permissions delegated, uses controller host user
|
||||||
@@ -57,6 +58,7 @@
|
|||||||
dest: "{{ local_path.stat.path }}/{{ keycloak.bundle }}"
|
dest: "{{ local_path.stat.path }}/{{ keycloak.bundle }}"
|
||||||
mode: 0640
|
mode: 0640
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
|
become: false
|
||||||
run_once: true
|
run_once: true
|
||||||
when:
|
when:
|
||||||
- archive_path is defined
|
- archive_path is defined
|
||||||
|
|||||||
Reference in New Issue
Block a user