1
0
forked from infra/ansible

fileserver: new wip role for bowle (now on Debian)

This commit is contained in:
Markus 2021-06-07 13:05:34 +02:00
parent 7b1f998af2
commit b2442be2d8
6 changed files with 46 additions and 2 deletions

View File

@ -0,0 +1,7 @@
---
nfs_exports:
- /exports/backup/bk 172.23.1.60(rw,sync,no_subtree_check)
- /exports/backup/rz 172.23.9.61(rw,sync,no_subtree_check)
uau_reboot: "false"

2
hosts
View File

@ -6,7 +6,7 @@ sulis.binary.kitchen ansible_host=172.23.2.5
nabia.binary.kitchen ansible_host=172.23.2.6 nabia.binary.kitchen ansible_host=172.23.2.6
pizza.binary.kitchen ansible_host=172.23.2.33 pizza.binary.kitchen ansible_host=172.23.2.33
bob.binary.kitchen ansible_host=172.23.2.37 bob.binary.kitchen ansible_host=172.23.2.37
bowle.binary.kitchen ansible_host=172.23.2.62 ansible_python_interpreter=/usr/local/bin/python2.7 bowle.binary.kitchen ansible_host=172.23.2.62
salat.binary.kitchen ansible_host=172.23.9.61 salat.binary.kitchen ansible_host=172.23.9.61
[fan_rz] [fan_rz]
helium.binary-kitchen.net helium.binary-kitchen.net

View File

@ -0,0 +1,4 @@
---
- name: Reload nfs-server
service: name=nfs-erver state=reloaded

View File

@ -0,0 +1,24 @@
---
# TODO
# enable non-free and contrib in order to properly install zfs-dkms
- name: Install ZFS
apt:
name:
- zfs-dkms
- name: Install NFS and SMB
apt:
name:
- nfs-kernel-server
- samba
- name: Configure NFS
template:
src: exports.j2
dest: /etc/exports
notify: Reload nfs-server
# TODO
# configure SMB

View File

@ -0,0 +1,4 @@
# {{ ansible_managed }}
{% for item in nfs_exports %}
{{ item }}
{% endfor %}

View File

@ -8,7 +8,7 @@
- root_keys - root_keys
- name: Setup unattended updates - name: Setup unattended updates
hosts: [sulis.binary.kitchen, nabia.binary.kitchen, bob.binary.kitchen, beryllium.binary-kitchen.net, boron.binary-kitchen.net, carbon.binary-kitchen.net, nitrogen.binary-kitchen.net, oxygen.binary-kitchen.net, fluorine.binary-kitchen.net, sodium.binary-kitchen.net, krypton.binary-kitchen.net, yttrium.binary-kitchen.net, zirconium.binary-kitchen.net, molybdenum.binary-kitchen.net, technetium.binary-kitchen.net, ruthenium.binary-kitchen.net, barium.binary-kitchen.net] hosts: [sulis.binary.kitchen, nabia.binary.kitchen, bob.binary.kitchen, bowle.binary.kitchen, beryllium.binary-kitchen.net, boron.binary-kitchen.net, carbon.binary-kitchen.net, nitrogen.binary-kitchen.net, oxygen.binary-kitchen.net, fluorine.binary-kitchen.net, neon.binary-kitchen.net, sodium.binary-kitchen.net, krypton.binary-kitchen.net, yttrium.binary-kitchen.net, zirconium.binary-kitchen.net, molybdenum.binary-kitchen.net, technetium.binary-kitchen.net, ruthenium.binary-kitchen.net, barium.binary-kitchen.net]
roles: roles:
- uau - uau
@ -43,6 +43,11 @@
roles: roles:
- drone_runner - drone_runner
- name: Setup file server
hosts: bowle.binary.kitchen
roles:
- fileserver
- name: Setup ldap server - name: Setup ldap server
hosts: helium.binary-kitchen.net hosts: helium.binary-kitchen.net
roles: roles: