diff options
| author | Ahmed Abdelhalim <[email protected]> | 2026-07-19 00:23:36 +0200 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2026-07-19 00:23:36 +0200 |
| commit | 457ea6648783258458bb12280d39d5816450ff62 (patch) | |
| tree | d1f7375ede93c47710fab15d2fb973e0f5bfdf86 /roles/mount/tasks | |
| parent | 11e661babdb681924d902cbf193ed248dd88c039 (diff) | |
Rename backup -> mount as a role
Diffstat (limited to 'roles/mount/tasks')
| -rw-r--r-- | roles/mount/tasks/main.yml | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/roles/mount/tasks/main.yml b/roles/mount/tasks/main.yml new file mode 100644 index 00000000..65e40416 --- /dev/null +++ b/roles/mount/tasks/main.yml @@ -0,0 +1,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" |
