2
0
Fork 0
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.
ansible.mounts/tasks/main.yml

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