This repository has been archived on 2020-11-04. You can view files and clone it, but cannot push or open issues or pull requests.
2017-07-21 14:48:43 +02:00
|
|
|
---
|
|
|
|
# tasks file for mounts
|
|
|
|
|
|
|
|
- name: Create mount directories
|
|
|
|
file:
|
|
|
|
path: "{{ item.name }}"
|
|
|
|
state: directory
|
|
|
|
with_items: "{{ mounts_list }}"
|
2017-07-21 15:20:07 +02:00
|
|
|
|
|
|
|
- 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 }}"
|
2017-07-21 15:35:34 +02:00
|
|
|
notify: restart fs.target
|