File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -119,6 +119,9 @@ runner_extra_config_args: ""
119
119
# Name to assign to this runner in GitHub (System hostname as default)
120
120
runner_name : " {{ ansible_facts.hostname }}"
121
121
122
+ # Set to false when provisioning runners for more than one repository within single play
123
+ all_runners_in_same_repo : true
124
+
122
125
# GitHub Repository user or Organization owner used for Runner registration
123
126
# github_account: "youruser"
124
127
@@ -292,7 +295,7 @@ cd path/to/monolithprojects.github_actions_runner
292
295
` ` ` bash
293
296
export PERSONAL_ACCESS_TOKEN=your_github_pat # Your Personal Access Token to Github
294
297
export GITHUB_ACCOUNT=your_account # Your Github Account
295
- export GITHUB_ACCOUNT =your_repository # Github Repository where you want to setup the Runner
298
+ export GITHUB_REPO =your_repository # Github Repository where you want to setup the Runner
296
299
` ` `
297
300
298
301
3. Run Molecule :
Original file line number Diff line number Diff line change @@ -48,6 +48,9 @@ runner_extra_config_args: ""
48
48
# Name to assign to this runner in GitHub (System hostname as default)
49
49
runner_name : " {{ ansible_facts.hostname }}"
50
50
51
+ # Set to false when provisioning runners for more than one repository within single play
52
+ all_runners_in_same_repo : true
53
+
51
54
# GitHub Repository user or Organization owner used for Runner registration
52
55
# github_account: "youruser"
53
56
Original file line number Diff line number Diff line change 29
29
register : registration
30
30
run_once : true
31
31
32
- - name : Check currently registered runners for repo (RUN ONCE)
32
+ - name : " Check currently registered runners for repo {{ ' (RUN ONCE)' if all_runners_in_same_repo else '' }} "
33
33
ansible.builtin.uri :
34
34
url : " {{ github_full_api_url }}"
35
35
headers :
42
42
status_code : 200
43
43
force_basic_auth : true
44
44
register : registered_runners
45
- run_once : true
45
+ run_once : " {{ all_runners_in_same_repo }} "
46
46
47
47
- name : Get Runner User IDs
48
48
ansible.builtin.command : id -u "{{ runner_user }}"
You can’t perform that action at this time.
0 commit comments