Skip to content

Commit 9ffff38

Browse files
Conditions in main
1 parent 8cbd536 commit 9ffff38

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tasks/main.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,16 @@
1212
- uninstall
1313

1414
- include_tasks: install_deps.yml
15+
when: runner_state|lower == "started" or runner_state|lower == "stopped"
1516
tags:
1617
- install
1718

1819
- include_tasks: uninstall_runner.yml
19-
when: uninstall_runner
20+
when: reinstall_runner or runner_state|lower == "absent"
2021
tags:
2122
- uninstall
2223

2324
- include_tasks: install_runner.yml
25+
when: runner_state|lower == "started" or runner_state|lower == "stopped"
2426
tags:
2527
- install

0 commit comments

Comments
 (0)