-
Notifications
You must be signed in to change notification settings - Fork 0
/
samsung.yml
46 lines (39 loc) · 964 Bytes
/
samsung.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
- hosts: localhost
connection: local
name: PERFORM CONFIGURATION OF SAMSUNG 860 EVO 1TB SSD
gather_facts: no
become: yes
vars:
# Explicitly telling Ansible to use Python3, because of the bug below:
# # https://github.com/ansible/ansible/issues/54855
- ansible_python_interpreter: /usr/bin/python3
tasks:
- name: Create the physical volume (PV)
lvg:
vg: vg-samsung1tb
pvs: /dev/sda
tags:
- lvm
- name: Create the logical volume on disk for general use
lvol:
vg: vg-samsung1tb
lv: lv-general
size: 300g
tags:
- lvm
- name: Create the filesystem for general use
filesystem:
fstype: xfs
dev: /dev/vg-samsung1tb/lv-general
resizefs: yes
tags:
- lvm
- name: Mount the filesystem for general use
mount:
path: /mnt/general
src: /dev/vg-samsung1tb/lv-general
fstype: xfs
state: mounted
backup: yes
tags:
- lvm