Skip to content

Commit fca72a8

Browse files
Merge pull request #243 from felix-seifert/felix-seifert/vars-as-dicts
docs: transform vars list to dict
2 parents 6c92a74 + 77038dd commit fca72a8

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

README.md

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,8 @@ Runner service will be stated and will run under the same user as the Ansible is
166166
user: ansible
167167
become: yes
168168
vars:
169-
- github_account: github-access-user
170-
- github_repo: my_awesome_repo
169+
github_account: github-access-user
170+
github_repo: my_awesome_repo
171171
roles:
172172
- role: monolithprojects.github_actions_runner
173173
```
@@ -181,9 +181,9 @@ Same example as above, but runner will be added to an organization and deployed
181181
user: ansible
182182
become: yes
183183
vars:
184-
- github_account: my_awesome_org
185-
- runner_org: yes
186-
- runner_on_ghes: yes
184+
github_account: my_awesome_org
185+
runner_org: yes
186+
runner_on_ghes: yes
187187
roles:
188188
- role: monolithprojects.github_actions_runner
189189
```
@@ -197,8 +197,8 @@ If you have a Github Enterprise Cloud license and you want to manage all the sel
197197
user: automation
198198
become: yes
199199
vars:
200-
- github_enterprise: my_awesome_enterprise
201-
- runner_org: no
200+
github_enterprise: my_awesome_enterprise
201+
runner_org: no
202202
roles:
203203
- role: monolithprojects.github_actions_runner
204204
```
@@ -212,20 +212,20 @@ The runner service will be *stopped* and disabled. Runner will use custom enviro
212212
hosts: all
213213
become: yes
214214
vars:
215-
- runner_version: "2.165.2"
216-
- runner_user: runner-user
217-
- github_account: github-access-user
218-
- github_repo: my_awesome_repo
219-
- runner_state: "stopped"
220-
- runner_labels:
221-
- production
222-
- west
223-
- custom_env: |
224-
HTTP_PROXY=http://proxy.local:8080
225-
http_proxy=http://proxy.local:8080
226-
HTTPS_PROXY=http://proxy.local:8080
227-
https_proxy=http://proxy.local:8080
228-
no_proxy=localhost,127.0.0.1,127.0.0.2
215+
runner_version: "2.165.2"
216+
runner_user: runner-user
217+
github_account: github-access-user
218+
github_repo: my_awesome_repo
219+
runner_state: "stopped"
220+
runner_labels:
221+
- production
222+
- west
223+
custom_env: |
224+
HTTP_PROXY=http://proxy.local:8080
225+
http_proxy=http://proxy.local:8080
226+
HTTPS_PROXY=http://proxy.local:8080
227+
https_proxy=http://proxy.local:8080
228+
no_proxy=localhost,127.0.0.1,127.0.0.2
229229
230230
roles:
231231
- role: monolithprojects.github_actions_runner
@@ -239,9 +239,9 @@ In this example the Ansible role will uninstall the runner service and unregiste
239239
hosts: all
240240
become: yes
241241
vars:
242-
- github_account: github-access-user
243-
- github_repo: my_awesome_repo
244-
- runner_state: "absent"
242+
github_account: github-access-user
243+
github_repo: my_awesome_repo
244+
runner_state: "absent"
245245
roles:
246246
- role: monolithprojects.github_actions_runner
247247
```

0 commit comments

Comments
 (0)