-
-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathplaybook.yml
More file actions
123 lines (102 loc) · 2.44 KB
/
playbook.yml
File metadata and controls
123 lines (102 loc) · 2.44 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
---
- name: Version check
hosts: localhost
connection: local
gather_facts: false
tasks:
- name: Run version check
ansible.builtin.include_role:
name: version_check
- name: Maintain MANS
hosts: mans_host
become: true
gather_facts: true
vars_files:
- vars.yml
pre_tasks:
- name: Check if operating system is Debian
ansible.builtin.fail:
msg: >
This playbook is only supported on Debian.
Disable this check by setting 'skip_os_check: true' in vars.yml.
when:
- ansible_facts.distribution != "Debian"
- not skip_os_check|default(false)|bool
roles:
- role: validate_parity_config
tags:
- validate
- parity
- config
- role: wipecheck
tags: wipecheck
- role: manage_linux
tags:
- manage_linux
- base_setup
- role: manage_zsh
when: configure_zsh
tags:
- manage_zsh
- base_setup
- role: stefangweichinger.ansible_rclone
when: install_rclone
tags:
- rclone
- base_setup
- role: geerlingguy.docker
when: install_docker or configure_scrutiny
tags:
- docker
- base_setup
- scrutiny
- role: install_mergerfs
tags:
- install_mergerfs
- mergerfs
- role: install_snapraid
tags:
- install_snapraid
- snapraid
- role: install_btrfs
tags:
- install_btrfs
- btrfs
- role: manage_disks_nas
tags:
- manage_disks
- btrfs
- role: configure_mergerfs
tags:
- configure_mergerfs
- mergerfs
- role: configure_snapraid
tags:
- configure_snapraid
- snapraid
- role: vladgh.samba.server
tags: samba
- role: muffins_cache_mover
tags: cache_mover
- role: docker_scrutiny
when: configure_scrutiny
tags:
- scrutiny
- docker
- role: configure_hdidle
tags: hdidle
post_tasks:
- name: Display SnapRAID Configuration Notices
ansible.builtin.debug:
msg: "{{ snapraid_warning_message }}"
when: snapraid_warning_message is defined
tags:
- configure_snapraid
- snapraid
- name: Display Mount Cleanup Notices
ansible.builtin.debug:
msg: "{{ mount_cleanup_message }}"
when: mount_cleanup_message is defined
tags:
- manage_disks
- btrfs