ansible/roles/nfs-client/tasks/main.yml
2025-05-12 13:47:47 +08:00

32 lines
588 B
YAML

- name: Install nfs-common
become: true
apt:
pkg:
- nfs-common
- name: Mount /media/tv
become: true
ansible.posix.mount:
src: 10.0.1.101:/export/tv
path: /media/tv
opts: default
state: mounted
fstype: nfs
- name: Mount /media/film
become: true
ansible.posix.mount:
src: 10.0.1.101:/export/film
path: /media/film
opts: default
state: mounted
fstype: nfs
- name: Mount /media/misc
become: true
ansible.posix.mount:
src: 10.0.1.101:/export/misc
path: /media/misc
opts: default
state: mounted
fstype: nfs