ansible/liebchen.yml
Markus Rosenstihl 3ad8b29178 added bacula-conf.py
configure and restart bacula-fd
2024-02-10 17:25:42 +01:00

56 lines
1.4 KiB
YAML

- hosts: localhost
tasks:
- name: Install packages
apt:
name:
- geany
state: latest
- name: Enable home directory creation for new users
command: pam-auth-update --enable mkhomedir
- name: TeXlive
apt:
name:
- texlive-luatex
- texlive-latex-recommended
- texlive-latex-extra
- texlive-extra-utils
- texlive-publishers
- texlive-lang-english
- texlive-lang-german
- texlive-pictures
- name: Add jammy-proposed
apt_repository:
repo: deb http://de.archive.ubuntu.com/ubuntu jammy-proposed universe
state: present
filename: jammy-proposed
- name: Avoid normal upgrades from jammy-proposed
copy:
dest: "/etc/apt/preferences.d/proposed-updates"
content: |
# Configure apt to allow selective installs of packages from proposed
Package: *
Pin: release a=jammy-proposed
Pin-Priority: 400
- name: Install Bacula File Daemon
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