Skip to content

Commit 436f45b

Browse files
docs: readme file (#251)
1 parent 37d1ab7 commit 436f45b

File tree

1 file changed

+21
-40
lines changed

1 file changed

+21
-40
lines changed

README.md

Lines changed: 21 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -2,53 +2,34 @@
22

33
[![awesome-runners](https://img.shields.io/badge/listed%20on-awesome--runners-blue.svg)](https://github.com/jonico/awesome-runners)
44
[![Role version](https://img.shields.io/github/v/release/MonolithProjects/ansible-github_actions_runner)](https://galaxy.ansible.com/ui/standalone/roles/monolithprojects/github_actions_runner/)
5-
[![Role downloads](https://img.shields.io/ansible/role/d/MonolithProjects/github_actions_runner
6-
)](https://galaxy.ansible.com/ui/standalone/roles/monolithprojects/github_actions_runner/)
5+
[![Role downloads](https://img.shields.io/ansible/role/d/MonolithProjects/github_actions_runner)](https://galaxy.ansible.com/ui/standalone/roles/monolithprojects/github_actions_runner/)
76
[![Molecule test](https://github.com/MonolithProjects/ansible-github_actions_runner/actions/workflows/tests.yml/badge.svg)](https://github.com/MonolithProjects/ansible-github_actions_runner/actions/workflows/tests.yml)
87
[![License](https://img.shields.io/github/license/MonolithProjects/ansible-github_actions_runner)](https://github.com/MonolithProjects/ansible-github_actions_runner/blob/main/LICENSE)
98

10-
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)).
1110
It supports Enterprise, Organization and Repository Runners.
1211

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
20-
>```
21-
>
22-
>**requirements.yml:**
23-
>
24-
>```yml
25-
>roles:
26-
> - name: monolithprojects.github_actions_runner
27-
> version: 1.21.1
28-
> src: https://github.com/MonolithProjects/ansible-github_actions_runner
29-
>```
30-
3112
## Requirements
3213

3314
* System must have access to the GitHub API.
3415

35-
* 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.
3617

3718
> **Note**
3819
> 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).
4122
4223
> **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.
4425
4526
* Runner user has to be pre-created.
4627
Recommended role: `monolithprojects.user_management`
4728

48-
* CentOS and RockyLinuxsystems require EPEL repository.
29+
* CentOS and Rocky Linux systems require EPEL repository.
4930
Recommended role: `robertdebock.epel`
5031

51-
## Supported CPU architecture
32+
## Supported CPU Architecture
5233

5334
* ARM, ARM64 (dependencies installation is not covered by this role)
5435
* AMD64, x86_64
@@ -60,10 +41,10 @@ Personal Access Token for GitHub account can be created [here](https://github.co
6041
* Fedora 40+
6142
* Debian 10+
6243
* Ubuntu 22.04+
63-
* MacOS High Sierra +
44+
* macOS High Sierra+
6445
* Windows
6546

66-
## Weekly tested on:
47+
## Tested On
6748

6849
* Debian 13
6950
* Fedora 43
@@ -158,8 +139,8 @@ all_runners_in_same_repo: true
158139

159140
## Example Playbooks
160141

161-
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*).
163144

164145
```yaml
165146
---
@@ -174,7 +155,7 @@ Runner service will be stated and will run under the same user as the Ansible is
174155
- role: monolithprojects.github_actions_runner
175156
```
176157
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.
178159
179160
```yaml
180161
---
@@ -190,7 +171,7 @@ Same example as above, but runner will be added to an organization and deployed
190171
- role: monolithprojects.github_actions_runner
191172
```
192173
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:
194175
195176
```yaml
196177
---
@@ -205,8 +186,8 @@ If you have a Github Enterprise Cloud license and you want to manage all the sel
205186
- role: monolithprojects.github_actions_runner
206187
```
207188
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).
210191

211192
```yaml
212193
---
@@ -233,7 +214,7 @@ The runner service will be *stopped* and disabled. Runner will use custom enviro
233214
- role: monolithprojects.github_actions_runner
234215
```
235216

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.
237218

238219
```yaml
239220
---
@@ -277,12 +258,12 @@ pip install "molecule-plugins[docker]"
277258
cd path/to/monolithprojects.github_actions_runner
278259
```
279260

280-
2. Set Environment variables
261+
2. Set environment variables:
281262

282263
```bash
283-
export PERSONAL_ACCESS_TOKEN=your_github_pat # Your Personal Access Token to Github
284-
export GITHUB_ACCOUNT=your_account # Your Github Account
285-
export GITHUB_REPO=your_repository # Github Repository where you want to setup the Runner
264+
export PERSONAL_ACCESS_TOKEN=your_github_pat # Your Personal Access Token to GitHub
265+
export GITHUB_ACCOUNT=your_account # Your GitHub Account
266+
export GITHUB_REPO=your_repository # GitHub Repository where you want to set up the Runner
286267
```
287268

288269
3. Run Molecule:

0 commit comments

Comments
 (0)