ansible/roles/fileserver/tasks/main.yml

31 lines
596 B
YAML
Raw Permalink Normal View History

---
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-07-29 12:38:06 +02:00
- name: Install zfs-dkms
apt:
2021-07-29 12:38:06 +02:00
name: zfs-dkms
# creating the ZFS pool is not part of this role
2021-07-29 12:38:06 +02:00
- 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
2021-06-15 21:57:58 +02:00
- name: Configure samba
template:
src: smb.conf.j2
dest: /etc/samba/smb.conf
notify: Reload smbd