@@ -47,6 +47,7 @@ Personal Access Token for GitHub account can be created [here](https://github.co
4747This is a copy from ` defaults/main.yml `
4848
4949``` yaml
50+ ---
5051# Runner user - user under which is the local runner service running
5152runner_user : " {{ lookup('env','USER') }}"
5253
@@ -80,9 +81,6 @@ access_token: "{{ lookup('env', 'PERSONAL_ACCESS_TOKEN') }}"
8081# Is it the runner for organization or not?
8182runner_org : no
8283
83- # Name to assign to this runner in GitHub (System hostname as default)
84- runner_name : " {{ ansible_hostname }}"
85-
8684# Labels to apply to the runner
8785runner_labels : []
8886
@@ -92,7 +90,14 @@ runner_download_repository: "actions/runner"
9290# Extra arguments to pass to `config.sh`
9391runner_extra_config_args : " "
9492
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+
9599# 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.
96101# service_name: actions.runner._services.{{ runner_name }}.service
97102
98103# 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
132137 - role : monolithprojects.github_actions_runner
133138` ` `
134139
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 .
136141
137142` ` ` yaml
138143---
@@ -142,7 +147,8 @@ Same example as above, but runner will be added to an organization.
142147 become : yes
143148 vars :
144149 - github_account : my_awesome_org
145- - runner_org : true
150+ - runner_org : yes
151+ - runner_on_ghes : yes
146152 roles :
147153 - role : monolithprojects.github_actions_runner
148154` ` `
0 commit comments