Skip to content

Commit 8f83270

Browse files
Update install_runner_unix.yml
Resolves the following error due to how `ansible_distribution` resolves for macOS distributions ``` TASK [monolithprojects.github_actions_runner : STOP and disable Github Actions Runner service] **************************** fatal: [build-agent-26]: FAILED! => {"changed": true, "cmd": ["./svc.sh", "stop"], "delta": "0:00:00.004103", "end": "2024-11-04 15:02:53.034496", "msg": "non-zero return code", "rc": 1, "start": "2024-11-04 15:02:53.030393", "stderr": "", "stderr_lines": [], "stdout": "Must not run with sudo", "stdout_lines": ["Must not run with sudo"]} ```
1 parent 660379b commit 8f83270

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tasks/install_runner_unix.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@
165165
args:
166166
chdir: "{{ runner_dir }}"
167167
changed_when: true
168-
become: "{{ 'false' if ansible_distribution == 'MacOS' else 'true' }}"
168+
become: "{{ 'false' if ansible_distribution == 'MacOSX' else 'true' }}"
169169
no_log: "{{ hide_sensitive_logs | bool }}"
170170
ignore_errors: "{{ ansible_check_mode }}"
171171
when: runner_state|lower == "stopped"

0 commit comments

Comments
 (0)