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

23 lines
491 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' ]
- name: populate /etc/avahi/services
template:
src: templates/avahi/service.j2
dest: '/etc/avahi/services/yavdr-{{ item.key }}.service'
2017-06-22 13:29:20 +02:00
with_dict: '{{ media_dirs }}'