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
+19-2Lines changed: 19 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -79,7 +79,24 @@ Runner service will run under the same user as the Ansible is using for ssh conn
79
79
user: ansible
80
80
become: yes
81
81
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
83
100
- github_repo: my_awesome_repo
84
101
roles:
85
102
- role: monolithprojects.github_actions_runner
@@ -95,7 +112,7 @@ In this example the role will deploy (or redeploy) the GitHub Actions runner ser
0 commit comments