@@ -47,6 +47,7 @@ Personal Access Token for GitHub account can be created [here](https://github.co
47
47
This is a copy from ` defaults/main.yml `
48
48
49
49
``` yaml
50
+ ---
50
51
# Runner user - user under which is the local runner service running
51
52
runner_user : " {{ lookup('env','USER') }}"
52
53
@@ -80,9 +81,6 @@ access_token: "{{ lookup('env', 'PERSONAL_ACCESS_TOKEN') }}"
80
81
# Is it the runner for organization or not?
81
82
runner_org : no
82
83
83
- # Name to assign to this runner in GitHub (System hostname as default)
84
- runner_name : " {{ ansible_hostname }}"
85
-
86
84
# Labels to apply to the runner
87
85
runner_labels : []
88
86
@@ -92,7 +90,14 @@ runner_download_repository: "actions/runner"
92
90
# Extra arguments to pass to `config.sh`
93
91
runner_extra_config_args : " "
94
92
93
+ # Name to assign to this runner in GitHub (System hostname as default)
94
+ runner_name : " {{ ansible_hostname }}"
95
+
96
+ # Will the runner be deployed on Github Enterprise server?
97
+ runner_on_ghes : no
98
+
95
99
# Custom service name when usign Github Enterprise server
100
+ # DEPRECATED: this variable is deprecated in favor of "runner_on_ghes" and will be removed in release 1.15.
96
101
# service_name: actions.runner._services.{{ runner_name }}.service
97
102
98
103
# GitHub Repository user or Organization owner used for Runner registration
@@ -132,7 +137,7 @@ Runner service will be stated and will run under the same user as the Ansible is
132
137
- role : monolithprojects.github_actions_runner
133
138
` ` `
134
139
135
- Same example as above, but runner will be added to an organization.
140
+ Same example as above, but runner will be added to an organization and deployed on GitHub Enterprise Server .
136
141
137
142
` ` ` yaml
138
143
---
@@ -142,7 +147,8 @@ Same example as above, but runner will be added to an organization.
142
147
become : yes
143
148
vars :
144
149
- github_account : my_awesome_org
145
- - runner_org : true
150
+ - runner_org : yes
151
+ - runner_on_ghes : yes
146
152
roles :
147
153
- role : monolithprojects.github_actions_runner
148
154
` ` `
0 commit comments