You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+21-3Lines changed: 21 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@
9
9
10
10
11
11
This role will deploy/redeploy/uninstall and register/unregister local GitHub Actions Runner on Linux and macOS Systems (see [compatibility list](#supported-operating-systems) ).
12
-
It supports both, Organization and Repository Runners.
12
+
It supports Enterprise, Organization and Repository Runners.
13
13
14
14
## Requirements
15
15
@@ -18,7 +18,8 @@ It supports both, Organization and Repository Runners.
18
18
* The role require Personal Access Token to access the GitHub. The token can be set as `PERSONAL_ACCESS_TOKEN` environment variable.
19
19
20
20
> **Note**
21
-
> The token must have the `repo` scope (when creating a repo runner) or the `admin:org` scope (when creating a runner for an organization).
21
+
> The token must have the `repo` scope (when creating a repo runner), the `admin:org` scope (when creating a runner for an organization),
22
+
> the `manage_runners:enterprise` scope (when creating a enterprise runner).
22
23
Personal Access Token for GitHub account can be created [here](https://github.com/settings/tokens).
In this example the Ansible role will install (or update) the GitHub Actions Runner service (latest available version). The runner will be registered for *my_awesome_repo* GitHub repo.
128
132
Runner service will be stated and will run under the same user as the Ansible is using for ssh connection (*ansible*).
@@ -156,6 +160,20 @@ Same example as above, but runner will be added to an organization and deployed
156
160
- role: monolithprojects.github_actions_runner
157
161
```
158
162
163
+
If you have a Github Enterprise Cloud license and you want to manage all the self-hosted runners from the enterprise:
164
+
```yaml
165
+
---
166
+
- name: Install GitHub Actions Runner
167
+
hosts: all
168
+
user: automation
169
+
become: yes
170
+
vars:
171
+
- github_enterprise: my_awesome_enterprise
172
+
- runner_org: no
173
+
roles:
174
+
- role: monolithprojects.github_actions_runner
175
+
```
176
+
159
177
In this example the Ansible role will deploy (or update) the GitHub Actions runner service (version 2.165.2) and register the runner for the GitHub repo. Runner service will run under the user `runner-user`. Runner will be registered with two labels.
160
178
The runner service will be *stopped* and disabled. Runner will use custom environment variables (from file named `.env` in the self-hosted runner application directory).
0 commit comments