added bacula-conf.py

This commit is contained in:
Markus Rosenstihl 2024-02-10 17:08:08 +01:00
parent e822b2646f
commit 284f7fbf25
2 changed files with 13 additions and 0 deletions

View File

@ -42,6 +42,8 @@ elif platform.system() == "Linux":
else:
raise ValueError
if not fqdn.endswith(".liebchen.fkp"):
fqdn += ".liebchen.fkp"
data = {
"client":hostname,

View File

@ -41,3 +41,14 @@
apt:
name: bacula-fd
default_release: jammy-proposed
- name: Install script for bacula-fd configuration
copy:
src: bacula-conf.py
dest: /usr/local/bin/bacula-conf.py
mode: 0700
- name: run configuration for bacula-fd
command: /usr/local/bin/bacula-conf.py
- name: Restart service bacula-fd
service:
name: bacula-fd
state: restarted