blob: c7c6f3f98bc5a81a1eea0222347e7eb551088093 (
plain) (
blame)
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
|
---
- name: create mdadm device
vars:
mdadm_device: "{{ mdadm_volume }}"
include_role:
name: storage/mdadm/device
- name: create filesystem
filesystem:
dev: "{{ storage_device_path }}"
fstype: "{{ mdadm_volume.fs }}"
- name: mount filesytem
mount:
src: "{{ storage_device_path }}"
path: "{{ mdadm_volume.dest }}"
fstype: "{{ mdadm_volume.fs }}"
opts: "{{ mdadm_volume.mntopts | default(omit) }}"
state: mounted
- name: set volume owner/group and mode
file:
state: directory
path: "{{ mdadm_volume.dest }}"
mode: "{{ mdadm_volume.mode | default(omit) }}"
owner: "{{ mdadm_volume.owner | default(omit) }}"
group: "{{ mdadm_volume.group | default(omit) }}"
- name: export volume mountpoint
set_fact:
storage_volume_mountpoint: "{{ mdadm_volume.dest }}"
|