Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tasks/install_runner_unix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@
- name: Register runner # noqa no-changed-when
environment:
RUNNER_ALLOW_RUNASROOT: "1"
ACTIONS_RUNNER_INPUT_TOKEN: "{{ registration.json.token }}"
ansible.builtin.command:
"{{ runner_dir }}/./config.sh \
--url {{ github_full_url }} \
--token {{ registration.json.token }} \
--name '{{ runner_name }}' \
--labels {{ runner_labels | join(',') }} \
--runnergroup {{ runner_group }} \
Expand Down Expand Up @@ -113,10 +113,10 @@
- name: Replace registered runner # noqa no-changed-when
environment:
RUNNER_ALLOW_RUNASROOT: "1"
ACTIONS_RUNNER_INPUT_TOKEN: "{{ registration.json.token }}"
ansible.builtin.command:
"{{ runner_dir }}/config.sh \
--url {{ github_full_url }} \
--token {{ registration.json.token }} \
--name '{{ runner_name }}' \
--labels {{ runner_labels | join(',') }} \
--unattended \
Expand Down
4 changes: 2 additions & 2 deletions tasks/install_runner_win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@
- name: Register runner # noqa no-changed-when
environment:
RUNNER_ALLOW_RUNASROOT: "1"
ACTIONS_RUNNER_INPUT_TOKEN: "{{ registration.json.token }}"
ansible.windows.win_command:
"{{ runner_dir }}\\config.cmd \
--url {{ github_full_url }} \
--token {{ registration.json.token }} \
--name {{ runner_name }} \
--labels {{ runner_labels | join(',') }} \
--runnergroup {{ runner_group }} \
Expand All @@ -92,10 +92,10 @@
- name: Replace registered runner # noqa no-changed-when
environment:
RUNNER_ALLOW_RUNASROOT: "1"
ACTIONS_RUNNER_INPUT_TOKEN: "{{ registration.json.token }}"
ansible.windows.win_command:
"{{ runner_dir }}\\config.cmd \
--url {{ github_full_url }} \
--token {{ registration.json.token }} \
--name {{ runner_name }} \
--labels {{ runner_labels | join(',') }} \
--runasservice \
Expand Down
3 changes: 2 additions & 1 deletion tasks/uninstall_runner_unix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
- name: Unregister runner from the GitHub # noqa no-changed-when
environment:
RUNNER_ALLOW_RUNASROOT: "1"
ansible.builtin.command: "./config.sh remove --token {{ registration.json.token }} --name '{{ runner_name }}' --unattended"
ACTIONS_RUNNER_INPUT_TOKEN: "{{ registration.json.token }}"
ansible.builtin.command: "./config.sh remove --name '{{ runner_name }}' --unattended"
args:
chdir: "{{ runner_dir }}"
become: true
Expand Down
3 changes: 2 additions & 1 deletion tasks/uninstall_runner_win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
- name: Unregister runner from the GitHub
environment:
RUNNER_ALLOW_RUNASROOT: "1"
ansible.windows.win_command: "config.cmd remove --token {{ registration.json.token }} --name {{ runner_name }} --unattended"
ACTIONS_RUNNER_INPUT_TOKEN: "{{ registration.json.token }}"
ansible.windows.win_command: "config.cmd remove --name {{ runner_name }} --unattended"
args:
chdir: "{{ runner_dir }}"
become: true
Expand Down