blob: 65e404167897eb3900c959bc8ae9c65ff8f4b47a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
---
- name: "Create mount point"
become: true
ansible.builtin.file:
path: "{{ mount_point }}"
state: "directory"
owner: "root"
group: "root"
mode: "0755"
- name: "Mount drive"
become: true
ansible.posix.mount:
path: "{{ mount_point }}"
src: "{{ mount_device }}"
fstype: "{{ mount_fstype }}"
opts: "{{ mount_options }}"
state: "mounted"
|