yavdr-ansible/roles/nfs-server/tasks/main.yml

17 lines
312 B
YAML
Raw Normal View History

2017-06-21 12:46:51 +02:00
---
- 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' ]