2021-06-07 13:05:34 +02:00
|
|
|
---
|
|
|
|
|
2021-07-29 12:38:06 +02:00
|
|
|
# TODO also enable contrib for $release-security
|
|
|
|
- name: Enable contrib repositories
|
|
|
|
apt_repository:
|
|
|
|
repo: deb http://deb.debian.org/debian {{ ansible_distribution_release }} contrib
|
2021-06-07 13:05:34 +02:00
|
|
|
|
2021-07-29 12:38:06 +02:00
|
|
|
- name: Install zfs-dkms
|
2021-06-07 13:05:34 +02:00
|
|
|
apt:
|
2021-07-29 12:38:06 +02:00
|
|
|
name: zfs-dkms
|
|
|
|
|
|
|
|
# creating the ZFS pool is not part of this role
|
2021-06-07 13:05:34 +02:00
|
|
|
|
2021-07-29 12:38:06 +02:00
|
|
|
- name: Install NFS and samba
|
2021-06-07 13:05:34 +02:00
|
|
|
apt:
|
|
|
|
name:
|
|
|
|
- nfs-kernel-server
|
|
|
|
- samba
|
|
|
|
|
|
|
|
- name: Configure NFS
|
|
|
|
template:
|
|
|
|
src: exports.j2
|
|
|
|
dest: /etc/exports
|
|
|
|
notify: Reload nfs-server
|
|
|
|
|
2021-06-15 21:57:58 +02:00
|
|
|
- name: Configure samba
|
|
|
|
template:
|
|
|
|
src: smb.conf.j2
|
|
|
|
dest: /etc/samba/smb.conf
|
|
|
|
notify: Reload smbd
|