Set become_flags in ansible.cfg

Some users don’t have a login shell.
This commit is contained in:
Timotej Lazar 2024-06-24 21:38:31 +02:00
parent dbdf88fe36
commit c42f9ae1f9
2 changed files with 1 additions and 1 deletions

View file

@ -5,3 +5,4 @@ remote_user = root
[privilege_escalation]
become_method = su
become_flags = -s /bin/sh -l

View file

@ -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