Set become_flags in ansible.cfg
Some users don’t have a login shell.
This commit is contained in:
parent
dbdf88fe36
commit
c42f9ae1f9
|
@ -5,3 +5,4 @@ remote_user = root
|
|||
|
||||
[privilege_escalation]
|
||||
become_method = su
|
||||
become_flags = -s /bin/sh -l
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue