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 or redeploy or uninstall and register or unregister local GitHub Actions Runner (version you specified).
9
+
This role will deploy or redeploy or uninstall and register or unregister local GitHub Actions Runner.
11
10
12
-
Requirements
13
-
------------
11
+
## Requirements
14
12
15
13
* Supported Linux distros:
16
14
* CentOS/RHEL 7,8
@@ -20,23 +18,24 @@ Requirements
20
18
21
19
* System must have access to the GitHub.
22
20
21
+
* The role require Personal Access Token for the GitHub user. The token has to be a value of `PERSONAL_ACCESS_TOKEN` variable.
22
+
Export the token to the local host environment. The token has to have admin rights for the repo.
23
+
Personal Access Token for GitHub account can be created [here](https://github.com/settings/tokens).
24
+
**Note:** 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.
In this example the role will deploy (or redeploy) the GitHub Actions runner service (latest available version) and register the runner for the GitHub repo.
68
+
Runner service will run under the same user as the Ansible is using for ssh connection (*ansible*).
69
+
70
+
```yaml
71
+
---
72
+
- name: GitHub Actions Runner
73
+
hosts: all
74
+
user: ansible
75
+
become: yes
76
+
vars:
77
+
- github_account: my-github-user
78
+
- github_repo: my_awesome_repo
79
+
roles:
80
+
- role: monolithprojects.github_actions_runner
81
+
```
68
82
69
83
In this example the role will deploy (or redeploy) the GitHub Actions runner service (version 2.165.2) and register the runner for the GitHub repo.
70
84
@@ -75,8 +89,8 @@ In this example the role will deploy (or redeploy) the GitHub Actions runner ser
0 commit comments