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
+3-23Lines changed: 3 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ This role will deploy/redeploy/uninstall and register/unregister local GitHub Ac
12
12
13
13
* System must have access to the GitHub.
14
14
15
-
* The role require Personal Access Token for the GitHub user. The token has to be a value of `PERSONAL_ACCESS_TOKEN` variable.
15
+
* The role require Personal Access Token to access the Github Repository. The token has to be a value of `PERSONAL_ACCESS_TOKEN` variable.
16
16
Export the token to the local host environment. The token has to have admin rights for the repo.
17
17
Personal Access Token for GitHub account can be created [here](https://github.com/settings/tokens).
18
18
**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.
# GitHub Repository user or Organization owner used for Runner registration
61
61
# github_account: "youruser"
62
62
63
-
# GitHub Organization owner or Repository admin used for Runner registration (can be omitted if it is the same as "github_account")
64
-
# github_owner: "owneruser"
65
-
66
63
# Github repository name
67
64
# github_repo: "yourrepo"
68
65
```
@@ -85,24 +82,7 @@ Runner service will run under the same user as the Ansible is using for ssh conn
85
82
- role: monolithprojects.github_actions_runner
86
83
```
87
84
88
-
In this example the Ansible role will deploy (or redeploy) the GitHub Actions runner service. The Ansible will access the GitHub using the `github_account` and register the runner to the GitHub Organization Repository using the Repository admin user (or Organization owner) `github_owner`.
89
-
Runner service will run under the same user as the Ansible is using for ssh connection (*ansible*).
90
-
91
-
```yaml
92
-
---
93
-
- name: GitHub Actions Runner
94
-
hosts: all
95
-
user: ansible
96
-
become: yes
97
-
vars:
98
-
- github_account: github-access-user
99
-
- github_owner: github-repo-admin
100
-
- github_repo: my_awesome_repo
101
-
roles:
102
-
- role: monolithprojects.github_actions_runner
103
-
```
104
-
105
-
In this example the Ansible role will deploy (or redeploy) the GitHub Actions runner service (version 2.165.2) and register the runner for the GitHub repo. Runner service will run under the used `runner-user`.
85
+
In this example the Ansible role will deploy (or redeploy) 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`.
0 commit comments