Skip to content

Commit 7539ebe

Browse files
README editing
1 parent f7b6d55 commit 7539ebe

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

README.md

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,24 @@ Runner service will run under the same user as the Ansible is using for ssh conn
7979
user: ansible
8080
become: yes
8181
vars:
82-
- github_account: my-github-user
82+
- github_account: github-access-user
83+
- github_repo: my_awesome_repo
84+
roles:
85+
- role: monolithprojects.github_actions_runner
86+
```
87+
88+
In this example the 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
83100
- github_repo: my_awesome_repo
84101
roles:
85102
- role: monolithprojects.github_actions_runner
@@ -95,7 +112,7 @@ In this example the role will deploy (or redeploy) the GitHub Actions runner ser
95112
vars:
96113
- runner_version: "2.165.2"
97114
- runner_user: runner-user
98-
- github_account: my-github-user
115+
- github_account: github-access-user
99116
- github_repo: my_awesome_repo
100117
roles:
101118
- role: monolithprojects.github_actions_runner

0 commit comments

Comments
 (0)