File tree 3 files changed +10
-4
lines changed
3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -82,6 +82,9 @@ runner_org: no
82
82
# Name to assign to this runner in GitHub (System hostname as default)
83
83
runner_name : " {{ ansible_hostname }}"
84
84
85
+ # Labels to apply to the runner
86
+ runner_labels : " ''"
87
+
85
88
# Custom service name when usign Github Enterprise server
86
89
# service_name: actions.runner._services.{{ runner_name }}.service
87
90
Original file line number Diff line number Diff line change @@ -35,6 +35,9 @@ runner_org: no
35
35
# Name to assign to this runner in GitHub (System hostname as default)
36
36
runner_name : " {{ ansible_hostname }}"
37
37
38
+ # Labels to apply to the runner
39
+ runner_labels : " ''"
40
+
38
41
# Custom service name when usign Github Enterprise server
39
42
# service_name: actions.runner._services.{{ runner_name }}.service
40
43
Original file line number Diff line number Diff line change 80
80
81
81
- name : Register runner (if new installation) for repo
82
82
command : " {{ runner_dir }}/./config.sh --url {{ github_url }}/{{ github_owner | default(github_account) }}/{{ github_repo }} \
83
- --token {{ registration.json.token }} --name {{ runner_name }} --unattended"
83
+ --token {{ registration.json.token }} --name {{ runner_name }} --labels {{ runner_labels }} -- unattended"
84
84
args :
85
85
chdir : " {{ runner_dir }}"
86
86
become : yes
92
92
93
93
- name : Register runner (if new installation) for organization
94
94
command : " {{ runner_dir }}/./config.sh --url {{ github_url }}/{{ github_owner | default(github_account) }} \
95
- --token {{ registration.json.token }} --name {{ runner_name }} --unattended"
95
+ --token {{ registration.json.token }} --name {{ runner_name }} --labels {{ runner_labels }} -- unattended"
96
96
args :
97
97
chdir : " {{ runner_dir }}"
98
98
become : yes
104
104
105
105
- name : Replace registered runner for repo
106
106
command : " {{ runner_dir }}/config.sh --url {{ github_url }}/{{ github_owner | default(github_account) }}/{{ github_repo }} \
107
- --token {{ registration.json.token }} --name {{ runner_name }} --unattended --replace"
107
+ --token {{ registration.json.token }} --name {{ runner_name }} --labels {{ runner_labels }} -- unattended --replace"
108
108
args :
109
109
chdir : " {{ runner_dir }}"
110
110
become : yes
116
116
117
117
- name : Replace registered runner for organization
118
118
command : " {{ runner_dir }}/config.sh --url {{ github_url }}/{{ github_owner | default(github_account) }} \
119
- --token {{ registration.json.token }} --name {{ runner_name }} --unattended --replace"
119
+ --token {{ registration.json.token }} --name {{ runner_name }} --labels {{ runner_labels }} -- unattended --replace"
120
120
args :
121
121
chdir : " {{ runner_dir }}"
122
122
become : yes
You can’t perform that action at this time.
0 commit comments