Skip to content

Commit 46a8e0b

Browse files
committed
add config for passing additional arguments to config.sh
this is useful when using a runner fork which supports additional configs
1 parent 47da975 commit 46a8e0b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

defaults/main.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ runner_labels: []
4141
# GitHub repository where releases will be downloaded from
4242
runner_download_repository: "actions/runner"
4343

44+
# extra arguments to pass to `config.sh`
45+
runner_extra_config_args: ""
46+
4447
# Custom service name when usign Github Enterprise server
4548
# service_name: actions.runner._services.{{ runner_name }}.service
4649

tasks/install_runner.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@
7777

7878
- name: Register runner (if new installation) for repo
7979
command: "{{ runner_dir }}/./config.sh --url {{ github_url }}/{{ github_owner | default(github_account) }}/{{ github_repo }} \
80-
--token {{ registration.json.token }} --name {{ runner_name }} --labels {{ runner_labels | join(',') }} --unattended"
80+
--token {{ registration.json.token }} --name {{ runner_name }} --labels {{ runner_labels | join(',') }} --unattended \
81+
{{ runner_extra_config_args }}"
8182
args:
8283
chdir: "{{ runner_dir }}"
8384
become: yes

0 commit comments

Comments
 (0)