become user instead of sudo

This commit is contained in:
meaz 2023-05-18 12:44:00 +02:00
parent 51a6fc4b0c
commit 2db28aa7be
Signed by: meaz
GPG Key ID: CD7A47B2F1ED43B4
2 changed files with 5 additions and 1 deletions

View File

@ -7,6 +7,8 @@
version: '{{ item.branch }}'
force: yes
with_items: "{{ rcube_custom_themes }}"
become: yes
become_user: '{{ rcube_app_username }}'
- name: "[THEME] - Change repo ownership"
file:

View File

@ -7,7 +7,9 @@
force: yes
with_items: '{{ rcube_plugins }}'
when: item.repo is defined
become: yes
become_user: '{{ rcube_app_username }}'
- name: "[PLUGIN] - chown repo plugins directory"
file:
path: "{{ rcube_latest_path }}/plugins/{{ item.name }}"