2017-06-21 12:46:51 +02:00
|
|
|
---
|
|
|
|
|
2017-03-13 10:40:35 +01: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' ]
|
2017-06-22 13:28:10 +02:00
|
|
|
|
|
|
|
- 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 }}'
|