yavdr-ansible/roles/nfs-server/tasks/main.yml
2017-06-20 16:19:08 +02: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' ]