19 lines
438 B
YAML
19 lines
438 B
YAML
---
|
|
# tasks file for mounts
|
|
|
|
- name: Create mount directories
|
|
file:
|
|
path: "{{ item.name }}"
|
|
state: directory
|
|
with_items: "{{ mounts_list }}"
|
|
|
|
- name: Mount devices
|
|
mount:
|
|
name: "{{ item.name }}"
|
|
src: "{{ item.src }}"
|
|
fstype: "{{ item.fstype }}"
|
|
opts: "{{ item.opts | default(mounts_opts) }}"
|
|
state: "{{ item.state | default(mounts_state) }}"
|
|
with_items: "{{ mounts_list }}"
|
|
notify: restart fs.target
|