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
This role will deploy/redeploy/uninstall and register/unregister local GitHub Actions Runner on Linux and macOS Systems (see [compatibility list](#supported-operating-systems)).
9
+
This role will deploy/redeploy/uninstall and register/unregister local GitHub Actions Runner on Linux and macOS systems (see [compatibility list](#supported-operating-systems)).
11
10
It supports Enterprise, Organization and Repository Runners.
12
11
13
-
> [!IMPORTANT]
14
-
> My Galaxy account is currently broken. Please use Github for installation source.
15
-
>
16
-
> **CLI:**
17
-
>
18
-
>```yml
19
-
>ansible-galaxy role install git+https://github.com/MonolithProjects/ansible-github_actions_runner.git,1.21.1
* The role require Personal Access Token to access the GitHub. The token can be set as `PERSONAL_ACCESS_TOKEN` environment variable.
16
+
* The role requires a Personal Access Token to access GitHub. The token can be set as the`PERSONAL_ACCESS_TOKEN` environment variable.
36
17
37
18
> **Note**
38
19
> The token must have the `repo` scope (when creating a repo runner), the `admin:org` scope (when creating a runner for an organization),
39
-
> the `manage_runners:enterprise` scope (when creating a enterprise runner).
40
-
Personal Access Token for GitHub account can be created [here](https://github.com/settings/tokens).
20
+
> or the `manage_runners:enterprise` scope (when creating an enterprise runner).
21
+
> Personal Access Token for GitHub account can be created [here](https://github.com/settings/tokens).
41
22
42
23
> **Warning**
43
-
> Never store you personal access token in the GitHub repository. Use [GitHub Secrets](https://help.github.com/en/actions/configuring-and-managing-workflows/creating-and-storing-encrypted-secrets) or some different secrets service.
24
+
> Never store your personal access token in the GitHub repository. Use [GitHub Secrets](https://help.github.com/en/actions/configuring-and-managing-workflows/creating-and-storing-encrypted-secrets) or a different secrets service.
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.
162
-
Runner service will be stated and will run under the same user as the Ansible is using for ssh connection (*ansible*).
142
+
In this example the Ansible role will install (or update) the GitHub Actions Runner service (latest available version). The runner will be registered for the *my_awesome_repo* GitHub repository.
143
+
The runner service will be started and will run under the same user as Ansible is using for SSH connection (*ansible*).
163
144
164
145
```yaml
165
146
---
@@ -174,7 +155,7 @@ Runner service will be stated and will run under the same user as the Ansible is
174
155
- role: monolithprojects.github_actions_runner
175
156
```
176
157
177
-
Same example as above, but runner will be added to an organization and deployed on GitHub Enterprise Server.
158
+
Same example as above, but the runner will be added to an organization and deployed on GitHub Enterprise Server.
178
159
179
160
```yaml
180
161
---
@@ -190,7 +171,7 @@ Same example as above, but runner will be added to an organization and deployed
190
171
- role: monolithprojects.github_actions_runner
191
172
```
192
173
193
-
If you have a Github Enterprise Cloud license and you want to manage all the self-hosted runners from the enterprise:
174
+
If you have a GitHub Enterprise Cloud license and you want to manage all the self-hosted runners from the enterprise:
194
175
195
176
```yaml
196
177
---
@@ -205,8 +186,8 @@ If you have a Github Enterprise Cloud license and you want to manage all the sel
205
186
- role: monolithprojects.github_actions_runner
206
187
```
207
188
208
-
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.
209
-
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).
189
+
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 repository. The runner service will run under the user `runner-user`. The runner will be registered with two labels.
190
+
The runner service will be *stopped* and disabled. The runner will use custom environment variables (from a file named `.env` in the self-hosted runner application directory).
210
191
211
192
```yaml
212
193
---
@@ -233,7 +214,7 @@ The runner service will be *stopped* and disabled. Runner will use custom enviro
233
214
- role: monolithprojects.github_actions_runner
234
215
```
235
216
236
-
In this example the Ansible role will uninstall the runner service and unregister it from the GitHub Repository.
217
+
In this example the Ansible role will uninstall the runner service and unregister it from the GitHub repository.
0 commit comments