aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/med_dl/tasks/setup.yaml
blob: c3053e87855b9d9ffb69b23b230b497e2df3d2bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
---

- name: 'setup | Install required pkgs'
  ansible.builtin.package:
    name:
      - 'nfs-common'

- name: 'setup | Create the mount dir'
  ansible.builtin.file:
    path: '/mnt/data'
    state: 'directory'
    mode: '777'

- name: 'setup | Setup the NFS mount'
  ansible.posix.mount:
    src: '{{ med_dl_nas_mount_path }}'
    path: '/mnt/data'
    state: 'mounted'
    fstype: 'nfs'