Skip to content

Commit 0d34165

Browse files
Edit README
1 parent 71a03e7 commit 0d34165

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
[![License](https://img.shields.io/github/license/MonolithProjects/ansible-github_actions_runner)](https://github.com/MonolithProjects/ansible-github_actions_runner/blob/main/LICENSE)
99

1010

11-
This role will deploy/redeploy/uninstall and register/unregister local GitHub Actions Runner.
11+
This role will deploy/redeploy/uninstall and register/unregister local GitHub Actions Runner.
1212
It supports both, Organization and Repository Runners.
1313

1414
## Requirements
@@ -148,7 +148,7 @@ Same example as above, but runner will be added to an organization.
148148
```
149149
150150
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`. Runner will be registered with two labels.
151-
The runner service will be *stopped* and disabled.
151+
The runner service will be *stopped* and disabled. Runner will use custom environment variables (from file named `.env` in the self-hosted runner application directory).
152152

153153
```yaml
154154
---
@@ -164,6 +164,13 @@ The runner service will be *stopped* and disabled.
164164
- runner_labels:
165165
- production
166166
- west
167+
- custom_env: |
168+
HTTP_PROXY=http://proxy.local:8080
169+
http_proxy=http://proxy.local:8080
170+
HTTPS_PROXY=http://proxy.local:8080
171+
https_proxy=http://proxy.local:8080
172+
no_proxy=localhost,127.0.0.1,127.0.0.2
173+
167174
roles:
168175
- role: monolithprojects.github_actions_runner
169176
```

0 commit comments

Comments
 (0)