diff options
| author | Ahmed Abdelhalim <[email protected]> | 2026-06-22 12:41:26 +0200 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2026-06-22 12:52:06 +0200 |
| commit | 1f9af83bafedc45659b422032c30b8204c7414aa (patch) | |
| tree | 321219a31365be84ca27ebbf3dbd6f5dbccfb9ae /roles/backup/tasks/main.yml | |
| parent | f4977c88f9bef271fdb7f4e972c2a6dfa8124d33 (diff) | |
Add backup role for mounting a backup device on a rpi machine
Diffstat (limited to 'roles/backup/tasks/main.yml')
| -rw-r--r-- | roles/backup/tasks/main.yml | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/roles/backup/tasks/main.yml b/roles/backup/tasks/main.yml new file mode 100644 index 00000000..2180d659 --- /dev/null +++ b/roles/backup/tasks/main.yml @@ -0,0 +1,18 @@ +--- +- name: "Create backup mount point" + become: true + ansible.builtin.file: + path: "{{ backup_mount_point }}" + state: "directory" + owner: "root" + group: "root" + mode: "0755" + +- name: "Mount backup drive" + become: true + ansible.posix.mount: + path: "{{ backup_mount_point }}" + src: "{{ backup_device }}" + fstype: "{{ backup_fstype }}" + opts: "{{ backup_mount_options }}" + state: "mounted" |
