-
-
Notifications
You must be signed in to change notification settings - Fork 80
/
Copy pathmain.yml
52 lines (46 loc) · 1.49 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
---
- name: Include Assert tasks
ansible.builtin.include_tasks: assert.yml
tags:
- install
- uninstall
- name: Include Information collection tasks
ansible.builtin.include_tasks: collect_info.yml
tags:
- install
- uninstall
- name: Include tasks to install dependencies
ansible.builtin.include_tasks: install_deps.yml
when:
- runner_state|lower == "started" or runner_state|lower == "stopped"
- github_actions_system == "linux"
tags:
- install
- name: Include tasks to uninstall runner (UNIX-like)
ansible.builtin.include_tasks: uninstall_runner_unix.yml
when:
- reinstall_runner or runner_state|lower == "absent"
- github_actions_system == "linux" or github_actions_system == "osx"
tags:
- uninstall
- name: Include tasks to uninstall runner (Windows)
ansible.builtin.include_tasks: uninstall_runner_win.yml
when:
- reinstall_runner or runner_state|lower == "absent"
- github_actions_system == "win"
tags:
- uninstall
- name: Include tasks to install runner (UNIX-like)
ansible.builtin.include_tasks: install_runner_unix.yml
when:
- runner_state|lower == "started" or runner_state|lower == "stopped"
- github_actions_system == "linux" or github_actions_system == "osx"
tags:
- install
- name: Include tasks to install runner (Windows)
ansible.builtin.include_tasks: install_runner_win.yml
when:
- runner_state|lower == "started" or runner_state|lower == "stopped"
- github_actions_system == "win"
tags:
- install