yavdr-ansible/roles/nfs-server/tasks/main.yml
Alexander Grothe 10c3d12215 Add role to install nfs-server, cleanup roles and configuration
- use generic media_dirs including vdr recdir, loop over them to
  create directories, configure samba, nfs, etc.
- add role to install an configure nfs-kernel-server
- cleanup roles
- add custom fact modules
2017-03-13 10:40:35 +01:00

15 lines
307 B
YAML

- name: install nfs server packages
apt:
name: '{{ item }}'
state: present
install_recommends: no
with_items:
- nfs-kernel-server
- nfs-common
- name: create /etc/exports
template:
src: templates/nfs-exports.j2
dest: /etc/exports
notify: [ 'Restart NFS Kernel Server' ]