-
Notifications
You must be signed in to change notification settings - Fork 1
/
disk.yml
75 lines (75 loc) · 2.26 KB
/
disk.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
- hosts: all
become: true
tasks:
- name: Parition if NVME
parted:
device: /dev/nvme1n1
number: 1
state: present
ignore_errors: true
- name: Format
filesystem:
fstype: xfs
dev: /dev/nvme1n1p1
ignore_errors: true
- name: Directory
file:
path: "{{ es_data_dir }}"
state: directory
mode: '0777'
ignore_errors: true
- name: Mount
mount:
path: "{{ es_data_dir }}"
src: /dev/nvme1n1p1
fstype: xfs
state: mounted
ignore_errors: true
- name: Parition if Xvdf
parted:
device: /dev/xvdf
number: 1
state: present
ignore_errors: true
- name: Format
filesystem:
fstype: xfs
dev: /dev/xvdf1
ignore_errors: true
- name: Directory
file:
path: "{{ es_data_dir }}"
state: directory
mode: '0777'
ignore_errors: true
- name: Mount
mount:
path: "{{ es_data_dir }}"
src: /dev/xvdf1
fstype: xfs
state: mounted
ignore_errors: true
- name: Parition if Xvdb
parted:
device: /dev/xvdb
number: 1
state: present
ignore_errors: true
- name: Format
filesystem:
fstype: xfs
dev: /dev/xvdb1
ignore_errors: true
- name: Directory
file:
path: "{{ es_data_dir }}"
state: directory
mode: '0777'
ignore_errors: true
- name: Mount
mount:
path: "{{ es_data_dir }}"
src: /dev/xvdb1
fstype: xfs
state: mounted
ignore_errors: true