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: ""
119119# Name to assign to this runner in GitHub (System hostname as default)
120120runner_name : " {{ ansible_facts.hostname }}"
121121
122+ # Set to false when provisioning runners for more than one repository within single play
123+ all_runners_in_same_repo : true
124+
122125# GitHub Repository user or Organization owner used for Runner registration
123126# github_account: "youruser"
124127
@@ -292,7 +295,7 @@ cd path/to/monolithprojects.github_actions_runner
292295` ` ` bash
293296export PERSONAL_ACCESS_TOKEN=your_github_pat # Your Personal Access Token to Github
294297export 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
296299` ` `
297300
2983013. Run Molecule :
Original file line number Diff line number Diff line change @@ -48,6 +48,9 @@ runner_extra_config_args: ""
4848# Name to assign to this runner in GitHub (System hostname as default)
4949runner_name : " {{ ansible_facts.hostname }}"
5050
51+ # Set to false when provisioning runners for more than one repository within single play
52+ all_runners_in_same_repo : true
53+
5154# GitHub Repository user or Organization owner used for Runner registration
5255# github_account: "youruser"
5356
Original file line number Diff line number Diff line change 2929 register : registration
3030 run_once : true
3131
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 '' }} "
3333 ansible.builtin.uri :
3434 url : " {{ github_full_api_url }}"
3535 headers :
4242 status_code : 200
4343 force_basic_auth : true
4444 register : registered_runners
45- run_once : true
45+ run_once : " {{ all_runners_in_same_repo }} "
4646
4747 - name : Get Runner User IDs
4848 ansible.builtin.command : id -u "{{ runner_user }}"
You can’t perform that action at this time.
0 commit comments