-
Notifications
You must be signed in to change notification settings - Fork 10
/
playbook.yml
executable file
·111 lines (101 loc) · 2.17 KB
/
playbook.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
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
#!/usr/bin/env ansible-playbook
---
- name: Gather localhost's facts
hosts: localhost
gather_subset: 'min'
tasks: []
tags:
- always
- name: Ensure Python is installed
hosts: storpool
strategy: linear
gather_facts: false
become: true
roles:
- ensure_python
tags:
- always
- name: Build in-memory inventory groups
hosts: storpool
gather_facts: false
tasks:
- name: Generate group memberships
ansible.builtin.import_tasks: tasks/generate_group_membership.yml
when:
- sp_create_groups_by_services
tags:
- always
- name: Configuring hosts
hosts: storpool
gather_facts: yes
gather_subset:
- 'all'
- '!facter'
roles:
- storpool.bootstrap_node
- storpool.install_sp_python
tags:
- bootstrap-hosts
- name: Installing StorPool components
hosts: storpool
gather_subset:
- 'all'
- '!facter'
pre_tasks:
- name: Building in-memory inventory groups
import_tasks: tasks/generate_group_membership.yml
when:
- sp_create_groups_by_services
roles:
- install_storpool_components
tags:
- install-storpool-components
- name: Configuring Networking
hosts: storpool
gather_subset:
- 'all'
- '!facter'
pre_tasks:
- name: Building in-memory inventory groups
include_tasks: tasks/generate_group_membership.yml
when:
- sp_create_groups_by_services
roles:
- configure_networking
tags:
- configure-networking
- name: Configure Drives
hosts: storpool_server
gather_facts: "{{'initialize-disks' in ansible_run_tags}}"
gather_subset:
- "min"
roles:
- initialize_disks
tags:
- initialize-disks
- name: Configure StorPool CGroups
hosts: storpool
gather_facts: false
roles:
- configure_cgroups
tags:
- configure-cgroups
- name: Configuring StorPool services
hosts: storpool
gather_subset:
- 'all'
- '!facter'
roles:
- configure_services
tags:
- configure-services
- name: Performing system-wide testing
hosts: storpool
gather_subset:
- 'all'
- '!facter'
tasks:
- name: Importing testing tasks
import_tasks: tasks/perform_acceptance_tests.yml
tags:
- perform-tests