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
In this example the Ansible role will deploy (or redeploy) the GitHub Actions runner service (latest available version) and register the runner for the GitHub repo.
82
-
Runner service will run under the same user as the Ansible is using for ssh connection (*ansible*).
82
+
In this example the Ansible role will install (or update) the GitHub Actions Runner service (latest available version). The runner will be registered for *my_awesome_repo* GitHub repo.
83
+
Runner service will be stated and will run under the same user as the Ansible is using for ssh connection (*ansible*).
83
84
84
85
```yaml
85
86
---
86
-
- name: GitHub Actions Runner
87
+
- name: Install GitHub Actions Runner
87
88
hosts: all
88
89
user: ansible
89
90
become: yes
@@ -94,11 +95,11 @@ Runner service will run under the same user as the Ansible is using for ssh conn
94
95
- role: monolithprojects.github_actions_runner
95
96
```
96
97
97
-
Same example, but runner will be added to an organization
98
+
Same example as above, but runner will be added to an organization.
98
99
99
100
```yaml
100
101
---
101
-
- name: GitHub Actions Runner
102
+
- name: Install GitHub Actions Runner
102
103
hosts: all
103
104
user: ansible
104
105
become: yes
@@ -109,26 +110,37 @@ Same example, but runner will be added to an organization
109
110
- role: monolithprojects.github_actions_runner
110
111
```
111
112
112
-
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`.
113
+
In this example the Ansible role will deploy (or update) 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`.
114
+
The runner service will be *stopped*.
113
115
114
116
```yaml
115
117
---
116
-
- name: GitHub Actions Runner
118
+
- name: Stop GitHub Actions Runner
117
119
hosts: all
118
120
become: yes
119
121
vars:
120
122
- runner_version: "2.165.2"
121
123
- runner_user: runner-user
122
124
- github_account: github-access-user
123
125
- github_repo: my_awesome_repo
126
+
- runner_state: "stopped"
124
127
roles:
125
128
- role: monolithprojects.github_actions_runner
126
129
```
127
130
128
-
By using tag `uninstall` with combination of variable `uninstall_runner: yes`, GitHub Actions runner will be removed from the host and unregistered from the GitHub repository.
131
+
In this example the Ansible role will uninstall the runner service and unregister it from the GitHub Repository.
0 commit comments