diff --git a/ansible.cfg b/ansible.cfg index b9a76ef..d315089 100644 --- a/ansible.cfg +++ b/ansible.cfg @@ -5,3 +5,4 @@ remote_user = root [privilege_escalation] become_method = su +become_flags = -s /bin/sh -l diff --git a/roles/forgejo/tasks/main.yml b/roles/forgejo/tasks/main.yml index 269aca4..77f23c5 100644 --- a/roles/forgejo/tasks/main.yml +++ b/roles/forgejo/tasks/main.yml @@ -142,7 +142,6 @@ - name: Register runner become: yes become_user: forgejo-runner - become_flags: '-s /bin/sh -l' command: | forgejo-runner register --no-interactive --name runner --instance https://git.fri.uni-lj.si