Skip to content

Commit efab0d6

Browse files
Merge pull request #111 from MonolithProjects/develop
Fixed `runner_extra_config_args`
2 parents 023d00f + f0e0c33 commit efab0d6

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ runner_labels: []
8787
# GitHub Actions Runner repository (change it if you want to use custom Actions Runner fork)
8888
runner_download_repository: "actions/runner"
8989

90-
# Extra arguments to pass to `config.sh`
90+
# Extra arguments to pass to `config.sh`.
91+
# Several arguments muste be set as one string (i.e. "--ephemeral --my_special_fork")
9192
runner_extra_config_args: ""
9293

9394
# Name to assign to this runner in GitHub (System hostname as default)

defaults/main.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ runner_labels: []
3838
# GitHub Actions Runner repository (change it if you want to use custom Actions Runner fork)
3939
runner_download_repository: "actions/runner"
4040

41-
# Extra arguments to pass to `config.sh`
41+
# Extra arguments to pass to `config.sh`.
42+
# Several arguments muste be set as one string (i.e. "--ephemeral --my_special_fork")
4243
runner_extra_config_args: ""
4344

4445
# Name to assign to this runner in GitHub (System hostname as default)

meta/main.yml

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
galaxy_info:
33
author: Michal Muransky
44
role_name: github_actions_runner
5+
namespace: monolithprojects
56
description: Deploy Github Actions private runner
67
company: MonolithProjects
78
license: "license (MIT)"

tasks/install_runner.yml

+6-3
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,8 @@
110110
- name: Register runner (if new installation) for organization
111111
command:
112112
"{{ runner_dir }}/./config.sh --url {{ github_url }}/{{ github_owner | default(github_account) }} \
113-
--token {{ registration.json.token }} --name {{ runner_name }} --labels {{ runner_labels | join(',') }} --unattended"
113+
--token {{ registration.json.token }} --name {{ runner_name }} --labels {{ runner_labels | join(',') }} --unattended \
114+
{{ runner_extra_config_args }}"
114115
args:
115116
chdir: "{{ runner_dir }}"
116117
become: yes
@@ -123,7 +124,8 @@
123124
- name: Replace registered runner for repo
124125
command:
125126
"{{ runner_dir }}/config.sh --url {{ github_url }}/{{ github_owner | default(github_account) }}/{{ github_repo }} \
126-
--token {{ registration.json.token }} --name {{ runner_name }} --labels {{ runner_labels | join(',') }} --unattended --replace"
127+
--token {{ registration.json.token }} --name {{ runner_name }} --labels {{ runner_labels | join(',') }} --unattended \
128+
{{ runner_extra_config_args }} --replace"
127129
args:
128130
chdir: "{{ runner_dir }}"
129131
become: yes
@@ -136,7 +138,8 @@
136138
- name: Replace registered runner for organization
137139
command:
138140
"{{ runner_dir }}/config.sh --url {{ github_url }}/{{ github_owner | default(github_account) }} \
139-
--token {{ registration.json.token }} --name {{ runner_name }} --labels {{ runner_labels | join(',') }} --unattended --replace"
141+
--token {{ registration.json.token }} --name {{ runner_name }} --labels {{ runner_labels | join(',') }} --unattended \
142+
{{ runner_extra_config_args }} --replace"
140143
args:
141144
chdir: "{{ runner_dir }}"
142145
become: yes

0 commit comments

Comments
 (0)