Add role to install nfs-server, cleanup roles and configuration

- use generic media_dirs including vdr recdir, loop over them to
  create directories, configure samba, nfs, etc.
- add role to install an configure nfs-kernel-server
- cleanup roles
- add custom fact modules
This commit is contained in:
Alexander Grothe
2017-03-13 10:40:35 +01:00
parent d6647e1613
commit 10c3d12215
16 changed files with 385 additions and 81 deletions

View File

@@ -1,5 +1,5 @@
system:
shutdown: poweroff
grub:
timeout: 0
boot_options: quiet nosplash
grub:
timeout: 0
boot_options: quiet nosplash

View File

@@ -11,6 +11,6 @@
dest: /etc/default/grub
state: present
regexp: '^(GRUB_CMDLINE_LINUX_DEFAULT=")'
line: '\1{{ system.grub.boot_options}}"'
line: '\1{{ grub.boot_options}}"'
backrefs: yes
notify: [ 'Update GRUB' ]

View File

@@ -10,7 +10,7 @@ menuentry "PowerOff" {
{% endif %}
if [ "${recordfail}" = 1 ]; then
set timeout={{ 3 if system.grub.timeout < 3 else system.grub.timeout }}
set timeout={{ 3 if grub.timeout < 3 else grub.timeout }}
else
set timeout={{ system.grub.timeout if system.grub.timeout is defined else 0 }}
set timeout={{ grub.timeout if grub.timeout is defined else 0 }}
fi