File tree Expand file tree Collapse file tree 3 files changed +5
-8
lines changed Expand file tree Collapse file tree 3 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 55 become : yes
66 vars :
77 - runner_user : ansible
8- - github_repo : ansible-github_actions_runner-testrepo
98 - github_account : monolithprojects-testorg
109 - runner_state : absent
1110 - runner_org : yes
Original file line number Diff line number Diff line change 55 become : yes
66 vars :
77 - runner_user : ansible
8- - github_repo : ansible-github_actions_runner-testrepo
98 - github_account : monolithprojects-testorg
109 - runner_org : yes
1110 - runner_state : " stopped"
2019 become : yes
2120 vars :
2221 - runner_user : ansible
23- - github_repo : ansible-github_actions_runner-testrepo
2422 - github_account : monolithprojects-testorg
2523 - runner_org : yes
26- # - reinstall_runner: yes
24+ - reinstall_runner : yes
2725 - runner_version : " latest"
2826 roles :
2927 - robertdebock.epel
Original file line number Diff line number Diff line change 6161 run_once : yes
6262 become : false
6363 delegate_to : localhost
64- when : runner_version not in runner_installed.stdout
64+ when : runner_version not in runner_installed.stdout or reinstall_runner
6565 tags :
6666 - install
6767
7171 dest : " {{ runner_dir }}/"
7272 owner : " {{ runner_user }}"
7373 mode : 0755
74- when : runner_version not in runner_installed.stdout
74+ when : runner_version not in runner_installed.stdout or reinstall_runner
7575 notify :
7676 - Restart runner service
7777 tags :
109109 become : yes
110110 become_user : " {{ runner_user }}"
111111 no_log : " {{ hide_sensitive_logs | bool }}"
112- when : reinstall_runner and ansible_hostname in registered_runners.json.runners|map(attribute='name')|list and not runner_org
112+ when : ansible_hostname in registered_runners.json.runners|map(attribute='name')|list and not runner_org
113113 tags :
114114 - install
115115
121121 become : yes
122122 become_user : " {{ runner_user }}"
123123 no_log : " {{ hide_sensitive_logs | bool }}"
124- when : reinstall_runner and ansible_hostname in registered_runners.json.runners|map(attribute='name')|list and runner_org
124+ when : ansible_hostname in registered_runners.json.runners|map(attribute='name')|list and runner_org
125125 tags :
126126 - install
127127
You can’t perform that action at this time.
0 commit comments