ansible/roles/fileserver/tasks/main.yml

31 lines
596 B
YAML

---
# TODO also enable contrib for $release-security
- name: Enable contrib repositories
apt_repository:
repo: deb http://deb.debian.org/debian {{ ansible_distribution_release }} contrib
- name: Install zfs-dkms
apt:
name: zfs-dkms
# creating the ZFS pool is not part of this role
- name: Install NFS and samba
apt:
name:
- nfs-kernel-server
- samba
- name: Configure NFS
template:
src: exports.j2
dest: /etc/exports
notify: Reload nfs-server
- name: Configure samba
template:
src: smb.conf.j2
dest: /etc/samba/smb.conf
notify: Reload smbd