summaryrefslogtreecommitdiffstats
path: root/roles/mount/tasks/main.yml
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2026-07-19 00:23:36 +0200
committerAhmed Abdelhalim <[email protected]>2026-07-19 00:23:36 +0200
commit457ea6648783258458bb12280d39d5816450ff62 (patch)
treed1f7375ede93c47710fab15d2fb973e0f5bfdf86 /roles/mount/tasks/main.yml
parent11e661babdb681924d902cbf193ed248dd88c039 (diff)
Rename backup -> mount as a role
Diffstat (limited to 'roles/mount/tasks/main.yml')
-rw-r--r--roles/mount/tasks/main.yml18
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"