diff --git a/roles/mgrote_gitea_setup/tasks/admin.yml b/roles/mgrote_gitea_setup/tasks/admin.yml index 645c63c9..64543baa 100644 --- a/roles/mgrote_gitea_setup/tasks/admin.yml +++ b/roles/mgrote_gitea_setup/tasks/admin.yml @@ -7,6 +7,7 @@ - name: Ensure Admin-User exists no_log: true become_user: gitea + become: true ansible.builtin.command: | forgejo admin user create \ --config /etc/gitea/gitea.ini diff --git a/roles/mgrote_gitea_setup/tasks/ldap.yml b/roles/mgrote_gitea_setup/tasks/ldap.yml index b7ae5014..e4448223 100644 --- a/roles/mgrote_gitea_setup/tasks/ldap.yml +++ b/roles/mgrote_gitea_setup/tasks/ldap.yml @@ -7,6 +7,7 @@ - name: Ensure LDAP config is set up no_log: true become_user: gitea + become: true ansible.builtin.command: | forgejo admin auth add-ldap \ --config "{{ gitea_configuration_path }}/gitea.ini" \ @@ -32,6 +33,7 @@ - name: Modify LDAP config no_log: true become_user: gitea + become: true ansible.builtin.command: | forgejo admin auth update-ldap \ --config "{{ gitea_configuration_path }}/gitea.ini" \