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
# Account used for Runner registration (GitHub Repository user with admin rights or Organization owner)
64
67
# github_account: "youruser"
65
68
@@ -85,6 +88,21 @@ Runner service will run under the same user as the Ansible is using for ssh conn
85
88
- role: monolithprojects.github_actions_runner
86
89
```
87
90
91
+
Same example, but runner will be added to an organization
92
+
93
+
```yaml
94
+
---
95
+
- name: GitHub Actions Runner
96
+
hosts: all
97
+
user: ansible
98
+
become: yes
99
+
vars:
100
+
- github_account: my_awesome_org
101
+
- runner_org: true
102
+
roles:
103
+
- role: monolithprojects.github_actions_runner
104
+
```
105
+
88
106
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