Skip to content

Commit 0e9155e

Browse files
authored
🐛 Fix error become_user
become_user isn't effective is become flag by default is false, it is shown when you're working with a different user instead the remote_user for github_runner.
1 parent 2751462 commit 0e9155e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tasks/uninstall_runner.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
ansible.builtin.command: "./config.sh remove --token {{ registration.json.token }} --name '{{ runner_name }}' --unattended"
2424
args:
2525
chdir: "{{ runner_dir }}"
26-
become: false
26+
become: true
2727
become_user: "{{ runner_user }}"
2828
no_log: "{{ hide_sensitive_logs | bool }}"
2929
changed_when: true

0 commit comments

Comments
 (0)