Compare commits
10 Commits
a4fe2d3bad
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 91e40916c4 | |||
| e47774bc0b | |||
| d87ec89f4f | |||
| 855504dfec | |||
| 2a50cca686 | |||
| 5b66e83dc4 | |||
| 960c9222e2 | |||
| 7ff25744b5 | |||
| ae412af1d2 | |||
| 2f5300f53f |
@@ -1,121 +0,0 @@
|
|||||||
---
|
|
||||||
|
|
||||||
# ---
|
|
||||||
# deb822 ist das neue Konfigurationsformats für APT-Quellen (Repositories).
|
|
||||||
# Es basiert auf der Debian Control Syntax nach RFC 822 – daher der Name
|
|
||||||
# ---
|
|
||||||
|
|
||||||
- name: Nur APT auf Debian 13 (Trixie) migrieren
|
|
||||||
hosts: all
|
|
||||||
become: true
|
|
||||||
gather_facts: true
|
|
||||||
|
|
||||||
vars:
|
|
||||||
target_release: trixie
|
|
||||||
debian_mirror: "http://deb.debian.org/debian"
|
|
||||||
security_mirror: "http://security.debian.org/debian-security"
|
|
||||||
components: "main contrib non-free non-free-firmware"
|
|
||||||
enable_backports: true # auf false setzen, wenn du keine Backports willst
|
|
||||||
pin_backports_low: true # Backports nur auf Anfrage
|
|
||||||
# Nur manuelle Installation/Upgrade aus Backports:
|
|
||||||
# backports_pin_priority: 100
|
|
||||||
#
|
|
||||||
# Automatische Updates für bereits installierte Backports-Pakete.
|
|
||||||
# backports_pin_priority: 500 (>= 500)
|
|
||||||
#
|
|
||||||
backports_pin_priority: 100 # 100 = nie automatisch bevorzugen
|
|
||||||
apt_cache_valid_time: 3600
|
|
||||||
# Für offizielle Debian-Repos brauchst es kein Signed-By, weil debian-archive-keyring
|
|
||||||
# ohnehin systemweit vertrauenswürdig ist.
|
|
||||||
#
|
|
||||||
use_signed_by: true # oder false, wenn du Option A willst
|
|
||||||
# Wenn Signed-By explizit gesetzt werden soll, dann nutze den Keyring-Pfad und stelle sicher,
|
|
||||||
# dass das Paket installiert ist.
|
|
||||||
signed_by_keyring: "/usr/share/keyrings/debian-archive-keyring.gpg"
|
|
||||||
|
|
||||||
pre_tasks:
|
|
||||||
- name: Sicherstellen, dass wir Debian sind
|
|
||||||
assert:
|
|
||||||
that:
|
|
||||||
- ansible_facts['os_family'] == "Debian"
|
|
||||||
fail_msg: "Dieses Playbook ist nur für Debian geeignet."
|
|
||||||
|
|
||||||
tasks:
|
|
||||||
|
|
||||||
- name: Keyring für Debian-Archive sicherstellen (falls Signed-By genutzt)
|
|
||||||
ansible.builtin.apt:
|
|
||||||
name: debian-archive-keyring
|
|
||||||
state: present
|
|
||||||
when: use_signed_by
|
|
||||||
|
|
||||||
- name: (Optional) Alte /etc/apt/sources.list sichern
|
|
||||||
ansible.builtin.copy:
|
|
||||||
src: /etc/apt/sources.list
|
|
||||||
dest: /etc/apt/sources.list.before-trixie
|
|
||||||
remote_src: true
|
|
||||||
force: false
|
|
||||||
ignore_errors: true
|
|
||||||
|
|
||||||
- name: Alte /etc/apt/sources.list deaktivieren (leere Kommentar-Datei)
|
|
||||||
ansible.builtin.copy:
|
|
||||||
dest: /etc/apt/sources.list
|
|
||||||
content: |
|
|
||||||
# Verwaltet via Ansible. Repositories liegen in /etc/apt/sources.list.d/*.sources (deb822).
|
|
||||||
# Zielrelease: {{ target_release }}
|
|
||||||
owner: root
|
|
||||||
group: root
|
|
||||||
mode: "0644"
|
|
||||||
|
|
||||||
- name: Debian-Repo (deb + deb-src) als deb822 anlegen
|
|
||||||
ansible.builtin.template:
|
|
||||||
src: templates/apt-migrate-to-trixie/debian.sources.j2
|
|
||||||
dest: /etc/apt/sources.list.d/debian.sources
|
|
||||||
owner: root
|
|
||||||
group: root
|
|
||||||
mode: "0644"
|
|
||||||
|
|
||||||
- name: Security-Repo (deb + deb-src) als deb822 anlegen
|
|
||||||
ansible.builtin.template:
|
|
||||||
src: templates/apt-migrate-to-trixie/security.sources.j2
|
|
||||||
dest: /etc/apt/sources.list.d/security.sources
|
|
||||||
owner: root
|
|
||||||
group: root
|
|
||||||
mode: "0644"
|
|
||||||
|
|
||||||
- name: Backports-Repo (optional) als deb822 anlegen/entfernen
|
|
||||||
ansible.builtin.template:
|
|
||||||
src: templates/apt-migrate-to-trixie/backports.sources.j2
|
|
||||||
dest: /etc/apt/sources.list.d/backports.sources
|
|
||||||
owner: root
|
|
||||||
group: root
|
|
||||||
mode: "0644"
|
|
||||||
when: enable_backports
|
|
||||||
- name: Backports-Repo entfernen wenn deaktiviert
|
|
||||||
ansible.builtin.file:
|
|
||||||
path: /etc/apt/sources.list.d/backports.sources
|
|
||||||
state: absent
|
|
||||||
when: not enable_backports
|
|
||||||
|
|
||||||
- name: Optionales Backports-Pinning setzen
|
|
||||||
ansible.builtin.template:
|
|
||||||
src: templates/apt-migrate-to-trixie/99-backports.j2
|
|
||||||
dest: /etc/apt/preferences.d/99-backports
|
|
||||||
owner: root
|
|
||||||
group: root
|
|
||||||
mode: "0644"
|
|
||||||
when: enable_backports and pin_backports_low
|
|
||||||
|
|
||||||
- name: APT-Cache aktualisieren
|
|
||||||
ansible.builtin.apt:
|
|
||||||
update_cache: yes
|
|
||||||
cache_valid_time: "{{ apt_cache_valid_time }}"
|
|
||||||
|
|
||||||
- name: Verifikation - zeigen, ob Suites auf trixie stehen
|
|
||||||
ansible.builtin.command: apt-cache policy
|
|
||||||
register: apt_policy
|
|
||||||
changed_when: false
|
|
||||||
|
|
||||||
- name: Ausgabe anzeigen (nur Info)
|
|
||||||
ansible.builtin.debug:
|
|
||||||
msg: "{{ apt_policy.stdout.split('\n') | select('search', 'trixie') | list | join('\n') }}"
|
|
||||||
|
|
||||||
@@ -420,6 +420,8 @@ nis_user:
|
|||||||
password: '20-wieb.ke/24_%'
|
password: '20-wieb.ke/24_%'
|
||||||
|
|
||||||
|
|
||||||
|
samba_homes_virusfilter: true
|
||||||
|
|
||||||
# ==========
|
# ==========
|
||||||
# vars used by roles/common/tasks/samba-install.yml
|
# vars used by roles/common/tasks/samba-install.yml
|
||||||
# ==========
|
# ==========
|
||||||
|
|||||||
+8
-1
@@ -382,6 +382,7 @@ nis_user:
|
|||||||
|
|
||||||
- name: kirstin
|
- name: kirstin
|
||||||
groups:
|
groups:
|
||||||
|
- amif
|
||||||
- team
|
- team
|
||||||
- aktion-mensch
|
- aktion-mensch
|
||||||
is_samba_user: true
|
is_samba_user: true
|
||||||
@@ -419,6 +420,12 @@ nis_user:
|
|||||||
is_samba_user: true
|
is_samba_user: true
|
||||||
password: '20_son+keng-25.%'
|
password: '20_son+keng-25.%'
|
||||||
|
|
||||||
|
- name: victoria
|
||||||
|
groups:
|
||||||
|
- amif
|
||||||
|
is_samba_user: true
|
||||||
|
password: '20.vic-to-ria/25%'
|
||||||
|
|
||||||
- name: vincent
|
- name: vincent
|
||||||
groups:
|
groups:
|
||||||
- team
|
- team
|
||||||
@@ -440,7 +447,7 @@ nis_user:
|
|||||||
is_samba_user: true
|
is_samba_user: true
|
||||||
password: '20-ver-wal-tung%23!'
|
password: '20-ver-wal-tung%23!'
|
||||||
|
|
||||||
|
samba_homes_virusfilter: true
|
||||||
|
|
||||||
|
|
||||||
# ==========
|
# ==========
|
||||||
|
|||||||
@@ -163,6 +163,8 @@ nis_groups:
|
|||||||
group_id: 2100
|
group_id: 2100
|
||||||
- name: direx-personal-finanzen
|
- name: direx-personal-finanzen
|
||||||
group_id: 2110
|
group_id: 2110
|
||||||
|
- name: projektleitung
|
||||||
|
group_id: 2200
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -401,9 +403,22 @@ nis_user:
|
|||||||
- regishut-personal-finanzen
|
- regishut-personal-finanzen
|
||||||
- direx
|
- direx
|
||||||
- direx-personal-finanzen
|
- direx-personal-finanzen
|
||||||
|
- projektleitung
|
||||||
is_samba_user: true
|
is_samba_user: true
|
||||||
password: '8!Varianten'
|
password: '8!Varianten'
|
||||||
|
|
||||||
|
- name: hendrik.roth
|
||||||
|
groups:
|
||||||
|
- all-users
|
||||||
|
- buero-scan
|
||||||
|
- bgn-finanzen-personal
|
||||||
|
- mbr-finanzen-personal
|
||||||
|
- rias-berlin-finanzen-personal
|
||||||
|
- regishut-personal-finanzen
|
||||||
|
- direx-personal-finanzen
|
||||||
|
is_samba_user: true
|
||||||
|
password: 'H-S.tG3/wV46'
|
||||||
|
|
||||||
- name: janine.budich
|
- name: janine.budich
|
||||||
groups:
|
groups:
|
||||||
- all-users
|
- all-users
|
||||||
@@ -424,6 +439,7 @@ nis_user:
|
|||||||
- regishut-personal-finanzen
|
- regishut-personal-finanzen
|
||||||
- direx
|
- direx
|
||||||
- direx-personal-finanzen
|
- direx-personal-finanzen
|
||||||
|
- projektleitung
|
||||||
is_samba_user: true
|
is_samba_user: true
|
||||||
password: 'LoS_r3f_20_AS!'
|
password: 'LoS_r3f_20_AS!'
|
||||||
|
|
||||||
@@ -438,6 +454,18 @@ nis_user:
|
|||||||
is_samba_user: true
|
is_samba_user: true
|
||||||
password: 'AfZg3-9S/4IX'
|
password: 'AfZg3-9S/4IX'
|
||||||
|
|
||||||
|
- name: olga.masson
|
||||||
|
groups:
|
||||||
|
- all-users
|
||||||
|
- buero-scan
|
||||||
|
- bgn-finanzen-personal
|
||||||
|
- mbr-finanzen-personal
|
||||||
|
- rias-berlin-finanzen-personal
|
||||||
|
- regishut-personal-finanzen
|
||||||
|
- direx-personal-finanzen
|
||||||
|
is_samba_user: true
|
||||||
|
password: '6.7.mQ-sPE.o'
|
||||||
|
|
||||||
- name: swetlana.nikitenko
|
- name: swetlana.nikitenko
|
||||||
groups:
|
groups:
|
||||||
- all-users
|
- all-users
|
||||||
@@ -494,6 +522,7 @@ nis_user:
|
|||||||
- bgn
|
- bgn
|
||||||
- bgn-finanzen-personal
|
- bgn-finanzen-personal
|
||||||
- mbr-buero
|
- mbr-buero
|
||||||
|
- projektleitung
|
||||||
is_samba_user: true
|
is_samba_user: true
|
||||||
password: 'C+j3.w5.NJCI'
|
password: 'C+j3.w5.NJCI'
|
||||||
|
|
||||||
@@ -506,6 +535,7 @@ nis_user:
|
|||||||
- mbr-finanzen-personal
|
- mbr-finanzen-personal
|
||||||
- technik
|
- technik
|
||||||
- vdk
|
- vdk
|
||||||
|
- projektleitung
|
||||||
is_samba_user: true
|
is_samba_user: true
|
||||||
password: 'nA-y.I6ReJ-M'
|
password: 'nA-y.I6ReJ-M'
|
||||||
|
|
||||||
@@ -575,6 +605,7 @@ nis_user:
|
|||||||
- mbr-buero
|
- mbr-buero
|
||||||
- direx
|
- direx
|
||||||
- direx-personal-finanzen
|
- direx-personal-finanzen
|
||||||
|
- projektleitung
|
||||||
is_samba_user: true
|
is_samba_user: true
|
||||||
password: '5xp5ll9ar13us!'
|
password: '5xp5ll9ar13us!'
|
||||||
|
|
||||||
@@ -669,6 +700,14 @@ nis_user:
|
|||||||
is_samba_user: true
|
is_samba_user: true
|
||||||
password: 't32_aHxV.'
|
password: 't32_aHxV.'
|
||||||
|
|
||||||
|
- name: katharina.mueller
|
||||||
|
groups:
|
||||||
|
- all-users
|
||||||
|
- buero-scan
|
||||||
|
- mbr-buero
|
||||||
|
is_samba_user: true
|
||||||
|
password: '6.3b-5Vy/7-3'
|
||||||
|
|
||||||
- name: kathrin.hain
|
- name: kathrin.hain
|
||||||
groups:
|
groups:
|
||||||
- ag-antisem
|
- ag-antisem
|
||||||
@@ -722,6 +761,7 @@ nis_user:
|
|||||||
- buero-scan
|
- buero-scan
|
||||||
- ag-antisem
|
- ag-antisem
|
||||||
- mbr-buero
|
- mbr-buero
|
||||||
|
- projektleitung
|
||||||
is_samba_user: true
|
is_samba_user: true
|
||||||
password: 'V1v@H@f3rdr1nk'
|
password: 'V1v@H@f3rdr1nk'
|
||||||
|
|
||||||
@@ -730,6 +770,7 @@ nis_user:
|
|||||||
- all-users
|
- all-users
|
||||||
- buero-scan
|
- buero-scan
|
||||||
- mbr-buero
|
- mbr-buero
|
||||||
|
- technik
|
||||||
is_samba_user: true
|
is_samba_user: true
|
||||||
password: 'I.E7X.cUd-cc'
|
password: 'I.E7X.cUd-cc'
|
||||||
|
|
||||||
@@ -782,6 +823,14 @@ nis_user:
|
|||||||
is_samba_user: true
|
is_samba_user: true
|
||||||
password: 'q9.mL5-a-aYA'
|
password: 'q9.mL5-a-aYA'
|
||||||
|
|
||||||
|
- name: tirza.seene
|
||||||
|
groups:
|
||||||
|
- all-users
|
||||||
|
- buero-scan
|
||||||
|
- mbr-buero
|
||||||
|
is_samba_user: true
|
||||||
|
password: '7a9-7Rz-Rc2p'
|
||||||
|
|
||||||
# ---
|
# ---
|
||||||
# RIAS Berlin und Bund
|
# RIAS Berlin und Bund
|
||||||
# ---
|
# ---
|
||||||
@@ -832,6 +881,7 @@ nis_user:
|
|||||||
- rias-bund
|
- rias-bund
|
||||||
- rias-berlin
|
- rias-berlin
|
||||||
- rias-berlin-finanzen-personal
|
- rias-berlin-finanzen-personal
|
||||||
|
- projektleitung
|
||||||
is_samba_user: true
|
is_samba_user: true
|
||||||
password: '-a2%3bTzkW.A'
|
password: '-a2%3bTzkW.A'
|
||||||
|
|
||||||
@@ -894,6 +944,7 @@ nis_user:
|
|||||||
- regishut
|
- regishut
|
||||||
- regishut-personal-finanzen
|
- regishut-personal-finanzen
|
||||||
- direx-personal-finanzen
|
- direx-personal-finanzen
|
||||||
|
- projektleitung
|
||||||
is_samba_user: true
|
is_samba_user: true
|
||||||
password: 'bbMIQ.3/gZ3s'
|
password: 'bbMIQ.3/gZ3s'
|
||||||
|
|
||||||
@@ -951,6 +1002,8 @@ nis_user:
|
|||||||
password: 'RmMq-3Z--2.2'
|
password: 'RmMq-3Z--2.2'
|
||||||
|
|
||||||
|
|
||||||
|
samba_homes_virusfilter: true
|
||||||
|
|
||||||
|
|
||||||
# ==========
|
# ==========
|
||||||
# vars used by roles/common/tasks/samba-install.yml
|
# vars used by roles/common/tasks/samba-install.yml
|
||||||
@@ -1050,6 +1103,16 @@ samba_shares:
|
|||||||
vfs_object_recycle: true
|
vfs_object_recycle: true
|
||||||
recycle_path: '@Recycle.Bin'
|
recycle_path: '@Recycle.Bin'
|
||||||
|
|
||||||
|
- name: Projektleitung
|
||||||
|
path: /data/shares/Projektleitung
|
||||||
|
group_valid_users: projektleitung
|
||||||
|
group_write_list: projektleitung
|
||||||
|
file_create_mask: '0660'
|
||||||
|
dir_create_mask: '2770'
|
||||||
|
vfs_object_virusfilter: true
|
||||||
|
vfs_object_recycle: true
|
||||||
|
recycle_path: '@Recycle.Bin'
|
||||||
|
|
||||||
# ---
|
# ---
|
||||||
# VDK
|
# VDK
|
||||||
# ---
|
# ---
|
||||||
|
|||||||
@@ -177,6 +177,13 @@ nis_user:
|
|||||||
is_samba_user: true
|
is_samba_user: true
|
||||||
password: 'spa2014'
|
password: 'spa2014'
|
||||||
|
|
||||||
|
- name: genia
|
||||||
|
groups:
|
||||||
|
- intern
|
||||||
|
- buero
|
||||||
|
is_samba_user: true
|
||||||
|
password: '240481'
|
||||||
|
|
||||||
- name: isadora
|
- name: isadora
|
||||||
groups:
|
groups:
|
||||||
- intern
|
- intern
|
||||||
@@ -340,100 +347,7 @@ nis_user:
|
|||||||
is_samba_user: true
|
is_samba_user: true
|
||||||
password: '300195'
|
password: '300195'
|
||||||
|
|
||||||
|
samba_homes_virusfilter: true
|
||||||
# deleted users
|
|
||||||
#
|
|
||||||
# - name: marei
|
|
||||||
# groups:
|
|
||||||
# - intern
|
|
||||||
# - buero
|
|
||||||
# is_samba_user: true
|
|
||||||
# password: '220792'
|
|
||||||
#
|
|
||||||
# - name: virginia
|
|
||||||
# groups:
|
|
||||||
# - intern
|
|
||||||
# - buero
|
|
||||||
# is_samba_user: true
|
|
||||||
# password: '160292'
|
|
||||||
#
|
|
||||||
# - name: alina
|
|
||||||
# groups:
|
|
||||||
# - intern
|
|
||||||
# - buero
|
|
||||||
# is_samba_user: true
|
|
||||||
# password: '140686'
|
|
||||||
#
|
|
||||||
# - name: hannah
|
|
||||||
# groups:
|
|
||||||
# - intern
|
|
||||||
# - buero
|
|
||||||
# is_samba_user: true
|
|
||||||
# password: '28031973'
|
|
||||||
#
|
|
||||||
# - name: kristin
|
|
||||||
# groups:
|
|
||||||
# - intern
|
|
||||||
# - buero
|
|
||||||
# is_samba_user: true
|
|
||||||
# password: '49371'
|
|
||||||
#
|
|
||||||
# - name: thea
|
|
||||||
# groups:
|
|
||||||
# - intern
|
|
||||||
# - buero
|
|
||||||
# is_samba_user: true
|
|
||||||
# password: '060995'
|
|
||||||
#
|
|
||||||
# - name: katrine
|
|
||||||
# groups:
|
|
||||||
# - intern
|
|
||||||
# - buero
|
|
||||||
# is_samba_user: true
|
|
||||||
# password: '200290'
|
|
||||||
#
|
|
||||||
# - name: daniel
|
|
||||||
# groups:
|
|
||||||
# - intern
|
|
||||||
# - buero
|
|
||||||
# is_samba_user: true
|
|
||||||
# password: '210984'
|
|
||||||
#
|
|
||||||
# - name: andrea
|
|
||||||
# groups:
|
|
||||||
# - intern
|
|
||||||
# - buero
|
|
||||||
# - lpadmin
|
|
||||||
# is_samba_user: true
|
|
||||||
# password: 'kurse2010'
|
|
||||||
#
|
|
||||||
# - name: tali
|
|
||||||
# groups:
|
|
||||||
# - intern
|
|
||||||
# - buero
|
|
||||||
# is_samba_user: true
|
|
||||||
# password: '220686'
|
|
||||||
#
|
|
||||||
# - name: eva
|
|
||||||
# groups:
|
|
||||||
# - intern
|
|
||||||
# - buero
|
|
||||||
# is_samba_user: true
|
|
||||||
# password: '250791'
|
|
||||||
#
|
|
||||||
# - name: mariam
|
|
||||||
# groups:
|
|
||||||
# - intern
|
|
||||||
# - buero
|
|
||||||
# is_samba_user: true
|
|
||||||
# password: '240991'
|
|
||||||
#
|
|
||||||
# - name: simone
|
|
||||||
# groups:
|
|
||||||
# - intern
|
|
||||||
# - buero
|
|
||||||
# is_samba_user: true
|
|
||||||
# password: '031189'
|
|
||||||
|
|
||||||
|
|
||||||
# ==========
|
# ==========
|
||||||
|
|||||||
+141
-21
@@ -1,4 +1,13 @@
|
|||||||
---
|
---
|
||||||
|
- name: (apt.yml) Delete Hetzner files 'hetzner-mirror.list' and 'hetzner-security-updates.list'
|
||||||
|
file:
|
||||||
|
path: "{{ item }}"
|
||||||
|
state: absent
|
||||||
|
with_items:
|
||||||
|
- /etc/apt/sources.list.d/hetzner-mirror.list
|
||||||
|
- /etc/apt/sources.list.d/hetzner-security-updates.list
|
||||||
|
tags:
|
||||||
|
- apt-configuration
|
||||||
|
|
||||||
- name: (apt.yml) update configuration file - /etc/apt/sources.list
|
- name: (apt.yml) update configuration file - /etc/apt/sources.list
|
||||||
template:
|
template:
|
||||||
@@ -9,12 +18,143 @@
|
|||||||
mode: 0644
|
mode: 0644
|
||||||
register: apt_config_updated
|
register: apt_config_updated
|
||||||
when:
|
when:
|
||||||
- ansible_facts['distribution'] == "Debian"
|
|
||||||
- apt_manage_sources_list|bool
|
- apt_manage_sources_list|bool
|
||||||
|
- ansible_facts['distribution'] == 'Debian'
|
||||||
- (ansible_facts['distribution_major_version'] | int) < 13
|
- (ansible_facts['distribution_major_version'] | int) < 13
|
||||||
tags:
|
tags:
|
||||||
- apt-configuration
|
- apt-configuration
|
||||||
|
|
||||||
|
- name: (apt.yml) Ensure Debian archive keyring is present for deb822 Signed-By (Debian >= 13)
|
||||||
|
apt:
|
||||||
|
name: debian-archive-keyring
|
||||||
|
state: present
|
||||||
|
when:
|
||||||
|
- apt_manage_sources_list|bool
|
||||||
|
- ansible_facts['distribution'] == 'Debian'
|
||||||
|
- (ansible_facts['distribution_major_version'] | int) >= 13
|
||||||
|
- apt_deb822_use_signed_by | default(true) | bool
|
||||||
|
tags:
|
||||||
|
- apt-configuration
|
||||||
|
|
||||||
|
- name: (apt.yml) backup legacy /etc/apt/sources.list before deb822 migration (Debian >= 13)
|
||||||
|
copy:
|
||||||
|
src: /etc/apt/sources.list
|
||||||
|
dest: /etc/apt/sources.list.before-deb822
|
||||||
|
remote_src: true
|
||||||
|
force: false
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
mode: "0644"
|
||||||
|
when:
|
||||||
|
- apt_manage_sources_list|bool
|
||||||
|
- ansible_facts['distribution'] == 'Debian'
|
||||||
|
- (ansible_facts['distribution_major_version'] | int) >= 13
|
||||||
|
failed_when:
|
||||||
|
- apt_sources_list_backup.failed
|
||||||
|
- "'No such file or directory' not in (apt_sources_list_backup.msg | default(''))"
|
||||||
|
register: apt_sources_list_backup
|
||||||
|
tags:
|
||||||
|
- apt-configuration
|
||||||
|
|
||||||
|
- name: (apt.yml) replace /etc/apt/sources.list with deb822 notice (Debian >= 13)
|
||||||
|
copy:
|
||||||
|
dest: /etc/apt/sources.list
|
||||||
|
content: |
|
||||||
|
# {{ ansible_managed }}
|
||||||
|
#
|
||||||
|
# Verwaltet via Ansible. Repositories liegen in /etc/apt/sources.list.d/*.sources (deb822).
|
||||||
|
# Zielrelease: {{ ansible_facts['distribution_release'] }}
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
mode: "0644"
|
||||||
|
register: apt_config_updated_sources_list
|
||||||
|
when:
|
||||||
|
- apt_manage_sources_list|bool
|
||||||
|
- ansible_facts['distribution'] == 'Debian'
|
||||||
|
- (ansible_facts['distribution_major_version'] | int) >= 13
|
||||||
|
tags:
|
||||||
|
- apt-configuration
|
||||||
|
|
||||||
|
- name: (apt.yml) configure deb822 Debian repository (Debian >= 13)
|
||||||
|
template:
|
||||||
|
src: "etc/apt/deb822/debian.sources.j2"
|
||||||
|
dest: /etc/apt/sources.list.d/debian.sources
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
mode: "0644"
|
||||||
|
register: apt_config_updated_debian_sources
|
||||||
|
when:
|
||||||
|
- apt_manage_sources_list|bool
|
||||||
|
- ansible_facts['distribution'] == 'Debian'
|
||||||
|
- (ansible_facts['distribution_major_version'] | int) >= 13
|
||||||
|
tags:
|
||||||
|
- apt-configuration
|
||||||
|
|
||||||
|
- name: (apt.yml) configure deb822 security repository (Debian >= 13)
|
||||||
|
template:
|
||||||
|
src: "etc/apt/deb822/security.sources.j2"
|
||||||
|
dest: /etc/apt/sources.list.d/security.sources
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
mode: "0644"
|
||||||
|
register: apt_config_updated_security_sources
|
||||||
|
when:
|
||||||
|
- apt_manage_sources_list|bool
|
||||||
|
- ansible_facts['distribution'] == 'Debian'
|
||||||
|
- (ansible_facts['distribution_major_version'] | int) >= 13
|
||||||
|
tags:
|
||||||
|
- apt-configuration
|
||||||
|
|
||||||
|
- name: (apt.yml) configure deb822 backports repository (Debian >= 13)
|
||||||
|
template:
|
||||||
|
src: "etc/apt/deb822/backports.sources.j2"
|
||||||
|
dest: /etc/apt/sources.list.d/backports.sources
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
mode: "0644"
|
||||||
|
register: apt_config_updated_backports_sources
|
||||||
|
when:
|
||||||
|
- apt_manage_sources_list|bool
|
||||||
|
- ansible_facts['distribution'] == 'Debian'
|
||||||
|
- (ansible_facts['distribution_major_version'] | int) >= 13
|
||||||
|
- apt_backports_enable | default(false) | bool
|
||||||
|
tags:
|
||||||
|
- apt-configuration
|
||||||
|
|
||||||
|
# If 'backports' was enabled in a previous run but is now disabled.
|
||||||
|
#
|
||||||
|
- name: (apt.yml) remove deb822 backports repository when disabled (Debian >= 13)
|
||||||
|
file:
|
||||||
|
path: /etc/apt/sources.list.d/backports.sources
|
||||||
|
state: absent
|
||||||
|
register: apt_config_removed_backports_sources
|
||||||
|
when:
|
||||||
|
- apt_manage_sources_list|bool
|
||||||
|
- ansible_facts['distribution'] == 'Debian'
|
||||||
|
- (ansible_facts['distribution_major_version'] | int) >= 13
|
||||||
|
- not (apt_backports_enable | default(false) | bool)
|
||||||
|
tags:
|
||||||
|
- apt-configuration
|
||||||
|
|
||||||
|
# Collect change states from all Debian >=13 deb822 source tasks so apt update
|
||||||
|
# can force a fresh cache refresh when repository files changed.
|
||||||
|
- name: (apt.yml) aggregate deb822 source changes (Debian >= 13)
|
||||||
|
set_fact:
|
||||||
|
apt_config_updated:
|
||||||
|
changed: >-
|
||||||
|
{{
|
||||||
|
(apt_config_updated_sources_list.changed | default(false))
|
||||||
|
or (apt_config_updated_debian_sources.changed | default(false))
|
||||||
|
or (apt_config_updated_security_sources.changed | default(false))
|
||||||
|
or (apt_config_updated_backports_sources.changed | default(false))
|
||||||
|
or (apt_config_removed_backports_sources.changed | default(false))
|
||||||
|
}}
|
||||||
|
when:
|
||||||
|
- apt_manage_sources_list|bool
|
||||||
|
- ansible_facts['distribution'] == 'Debian'
|
||||||
|
- (ansible_facts['distribution_major_version'] | int) >= 13
|
||||||
|
tags:
|
||||||
|
- apt-configuration
|
||||||
|
|
||||||
- name: (apt.yml) apt update
|
- name: (apt.yml) apt update
|
||||||
apt:
|
apt:
|
||||||
@@ -30,7 +170,6 @@
|
|||||||
- apt-compiler-pkgs
|
- apt-compiler-pkgs
|
||||||
- apt-webserver-pkgs
|
- apt-webserver-pkgs
|
||||||
|
|
||||||
|
|
||||||
- name: (apt.yml) Configure any half-installed packages 'dpkg --configure -a'
|
- name: (apt.yml) Configure any half-installed packages 'dpkg --configure -a'
|
||||||
ansible.builtin.command: dpkg --configure -a
|
ansible.builtin.command: dpkg --configure -a
|
||||||
register: _dpkg_configure
|
register: _dpkg_configure
|
||||||
@@ -44,7 +183,6 @@
|
|||||||
- apt-compiler-pkgs
|
- apt-compiler-pkgs
|
||||||
- apt-webserver-pkgs
|
- apt-webserver-pkgs
|
||||||
|
|
||||||
|
|
||||||
- name: (apt.yml) apt upgrade
|
- name: (apt.yml) apt upgrade
|
||||||
apt:
|
apt:
|
||||||
upgrade: "{{ apt_upgrade_type }}"
|
upgrade: "{{ apt_upgrade_type }}"
|
||||||
@@ -58,7 +196,6 @@
|
|||||||
- apt-compiler-pkgs
|
- apt-compiler-pkgs
|
||||||
- apt-webserver-pkgs
|
- apt-webserver-pkgs
|
||||||
|
|
||||||
|
|
||||||
- name: (apt.yml) Initial install debian packages (stretch)
|
- name: (apt.yml) Initial install debian packages (stretch)
|
||||||
apt:
|
apt:
|
||||||
name: "{{ apt_initial_install_stretch }}"
|
name: "{{ apt_initial_install_stretch }}"
|
||||||
@@ -70,7 +207,6 @@
|
|||||||
tags:
|
tags:
|
||||||
- apt-initial-install
|
- apt-initial-install
|
||||||
|
|
||||||
|
|
||||||
- name: (apt.yml) Initial install debian packages (buster)
|
- name: (apt.yml) Initial install debian packages (buster)
|
||||||
apt:
|
apt:
|
||||||
name: "{{ apt_initial_install_buster }}"
|
name: "{{ apt_initial_install_buster }}"
|
||||||
@@ -82,7 +218,6 @@
|
|||||||
tags:
|
tags:
|
||||||
- apt-initial-install
|
- apt-initial-install
|
||||||
|
|
||||||
|
|
||||||
- name: (apt.yml) Initial install debian packages (bullseye)
|
- name: (apt.yml) Initial install debian packages (bullseye)
|
||||||
apt:
|
apt:
|
||||||
name: "{{ apt_initial_install_bullseye }}"
|
name: "{{ apt_initial_install_bullseye }}"
|
||||||
@@ -94,7 +229,6 @@
|
|||||||
tags:
|
tags:
|
||||||
- apt-initial-install
|
- apt-initial-install
|
||||||
|
|
||||||
|
|
||||||
- name: (apt.yml) Initial install debian packages (bookworm)
|
- name: (apt.yml) Initial install debian packages (bookworm)
|
||||||
apt:
|
apt:
|
||||||
name: "{{ apt_initial_install_bookworm }}"
|
name: "{{ apt_initial_install_bookworm }}"
|
||||||
@@ -106,7 +240,6 @@
|
|||||||
tags:
|
tags:
|
||||||
- apt-initial-install
|
- apt-initial-install
|
||||||
|
|
||||||
|
|
||||||
- name: (apt.yml) Initial install debian packages (trixie)
|
- name: (apt.yml) Initial install debian packages (trixie)
|
||||||
apt:
|
apt:
|
||||||
name: "{{ apt_initial_install_trixie }}"
|
name: "{{ apt_initial_install_trixie }}"
|
||||||
@@ -118,7 +251,6 @@
|
|||||||
tags:
|
tags:
|
||||||
- apt-initial-install
|
- apt-initial-install
|
||||||
|
|
||||||
|
|
||||||
- name: (apt.yml) Initial install ubuntu packages (bionic)
|
- name: (apt.yml) Initial install ubuntu packages (bionic)
|
||||||
apt:
|
apt:
|
||||||
name: "{{ apt_initial_install_bionic }}"
|
name: "{{ apt_initial_install_bionic }}"
|
||||||
@@ -159,7 +291,6 @@
|
|||||||
tags:
|
tags:
|
||||||
- apt-initial-install
|
- apt-initial-install
|
||||||
|
|
||||||
|
|
||||||
# ---
|
# ---
|
||||||
# Microcode
|
# Microcode
|
||||||
# ---
|
# ---
|
||||||
@@ -178,7 +309,6 @@
|
|||||||
- apt-initial-install
|
- apt-initial-install
|
||||||
- apt-microcode
|
- apt-microcode
|
||||||
|
|
||||||
|
|
||||||
- name: (apt.yml) Install CPU microcode (debian buster/bullseye/bookworm/trixie)
|
- name: (apt.yml) Install CPU microcode (debian buster/bullseye/bookworm/trixie)
|
||||||
apt:
|
apt:
|
||||||
name: "{{ microcode_intel_package }}"
|
name: "{{ microcode_intel_package }}"
|
||||||
@@ -193,7 +323,6 @@
|
|||||||
- apt-initial-install
|
- apt-initial-install
|
||||||
- apt-microcode
|
- apt-microcode
|
||||||
|
|
||||||
|
|
||||||
- name: (apt.yml) Install CPU microcode for AMD CPU (debian buster)
|
- name: (apt.yml) Install CPU microcode for AMD CPU (debian buster)
|
||||||
apt:
|
apt:
|
||||||
name: "{{ microcode_amd_package }}"
|
name: "{{ microcode_amd_package }}"
|
||||||
@@ -208,7 +337,6 @@
|
|||||||
- apt-initial-install
|
- apt-initial-install
|
||||||
- apt-microcode
|
- apt-microcode
|
||||||
|
|
||||||
|
|
||||||
- name: (apt.yml) Install CPU microcode for Intel CPU (ubuntu bionic)
|
- name: (apt.yml) Install CPU microcode for Intel CPU (ubuntu bionic)
|
||||||
apt:
|
apt:
|
||||||
name: "{{ microcode_intel_package }}"
|
name: "{{ microcode_intel_package }}"
|
||||||
@@ -222,7 +350,6 @@
|
|||||||
- apt-initial-install
|
- apt-initial-install
|
||||||
- apt-microcode
|
- apt-microcode
|
||||||
|
|
||||||
|
|
||||||
- name: (apt.yml) Install CPU microcode for AMD CPU (ubuntu bionic)
|
- name: (apt.yml) Install CPU microcode for AMD CPU (ubuntu bionic)
|
||||||
apt:
|
apt:
|
||||||
name: "{{ microcode_amd_package }}"
|
name: "{{ microcode_amd_package }}"
|
||||||
@@ -237,7 +364,6 @@
|
|||||||
- apt-initial-install
|
- apt-initial-install
|
||||||
- apt-microcode
|
- apt-microcode
|
||||||
|
|
||||||
|
|
||||||
- name: (apt.yml) Install CPU microcode for Intel CPU (ubuntu xenial)
|
- name: (apt.yml) Install CPU microcode for Intel CPU (ubuntu xenial)
|
||||||
apt:
|
apt:
|
||||||
name: "{{ microcode_intel_package }}"
|
name: "{{ microcode_intel_package }}"
|
||||||
@@ -251,7 +377,6 @@
|
|||||||
- apt-initial-install
|
- apt-initial-install
|
||||||
- apt-microcode
|
- apt-microcode
|
||||||
|
|
||||||
|
|
||||||
- name: (apt.yml) Install CPU microcode for Intel AMD (ubuntu xenial)
|
- name: (apt.yml) Install CPU microcode for Intel AMD (ubuntu xenial)
|
||||||
apt:
|
apt:
|
||||||
name: "{{ microcode_amd_package }}"
|
name: "{{ microcode_amd_package }}"
|
||||||
@@ -266,7 +391,6 @@
|
|||||||
- apt-initial-install
|
- apt-initial-install
|
||||||
- apt-microcode
|
- apt-microcode
|
||||||
|
|
||||||
|
|
||||||
- name: (apt.yml) Install CPU microcode for Intel CPU (ubuntu jammy/noble)
|
- name: (apt.yml) Install CPU microcode for Intel CPU (ubuntu jammy/noble)
|
||||||
apt:
|
apt:
|
||||||
name: "{{ microcode_intel_package }}"
|
name: "{{ microcode_intel_package }}"
|
||||||
@@ -280,7 +404,6 @@
|
|||||||
- apt-initial-install
|
- apt-initial-install
|
||||||
- apt-microcode
|
- apt-microcode
|
||||||
|
|
||||||
|
|
||||||
- name: (apt.yml) Install CPU microcode for Intel AMD (ubuntu jammy/noble)
|
- name: (apt.yml) Install CPU microcode for Intel AMD (ubuntu jammy/noble)
|
||||||
apt:
|
apt:
|
||||||
name: "{{ microcode_amd_package }}"
|
name: "{{ microcode_amd_package }}"
|
||||||
@@ -310,7 +433,6 @@
|
|||||||
- apt-initial-install
|
- apt-initial-install
|
||||||
- apt-firmware
|
- apt-firmware
|
||||||
|
|
||||||
|
|
||||||
- name: (apt.yml) Install Firmware packages (Debian)
|
- name: (apt.yml) Install Firmware packages (Debian)
|
||||||
apt:
|
apt:
|
||||||
name: "{{ firmware_packages_debian }}"
|
name: "{{ firmware_packages_debian }}"
|
||||||
@@ -322,7 +444,6 @@
|
|||||||
- apt-initial-install
|
- apt-initial-install
|
||||||
- apt-firmware
|
- apt-firmware
|
||||||
|
|
||||||
|
|
||||||
- name: (apt.yml) Install non-free Firmware packages (Debian)
|
- name: (apt.yml) Install non-free Firmware packages (Debian)
|
||||||
apt:
|
apt:
|
||||||
name: "{{ firmware_non_free_packages_debian }}"
|
name: "{{ firmware_non_free_packages_debian }}"
|
||||||
@@ -335,7 +456,6 @@
|
|||||||
- apt-initial-install
|
- apt-initial-install
|
||||||
- apt-firmware
|
- apt-firmware
|
||||||
|
|
||||||
|
|
||||||
# ---
|
# ---
|
||||||
# unwanted packages
|
# unwanted packages
|
||||||
# ---
|
# ---
|
||||||
|
|||||||
+23
-26
@@ -1,48 +1,45 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- name: (cron.yml) Set env entries in user crontabs
|
- name: (cron.yml) Set env entries in user crontabs
|
||||||
cron:
|
cron:
|
||||||
name: '{{ item.name }}'
|
name: "{{ item.name }}"
|
||||||
env: 'yes'
|
env: "yes"
|
||||||
user: '{{ item.user | default("root", true) }}'
|
user: '{{ item.user | default("root") }}'
|
||||||
job: '{{ item.job }}'
|
job: "{{ item.job }}"
|
||||||
insertafter: '{{ item.insertafter | default(omit) }}'
|
insertafter: "{{ item.insertafter | default(omit) }}"
|
||||||
loop: "{{ cron_env_entries }}"
|
loop: "{{ cron_env_entries | default([]) }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
label: '{{ item.name }}'
|
label: "{{ item.name }}"
|
||||||
when: item.job is defined
|
when: item.job is defined
|
||||||
tags:
|
tags:
|
||||||
- user_crontab
|
- user_crontab
|
||||||
|
|
||||||
|
|
||||||
- name: (cron.yml) Set special time entries in user crontabs
|
- name: (cron.yml) Set special time entries in user crontabs
|
||||||
cron:
|
cron:
|
||||||
name: '{{ item.name }}'
|
name: "{{ item.name }}"
|
||||||
special_time: '{{ item.special_time }}'
|
special_time: "{{ item.special_time }}"
|
||||||
user: '{{ item.user | default("root", true) }}'
|
user: '{{ item.user | default("root") }}'
|
||||||
job: '{{ item.job }}'
|
job: "{{ item.job }}"
|
||||||
state: present
|
state: present
|
||||||
loop: "{{ cron_user_special_time_entries }}"
|
loop: "{{ cron_user_special_time_entries | default([]) }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
label: '{{ item.name }}'
|
label: "{{ item.name }}"
|
||||||
when: item.job is defined
|
when: item.job is defined
|
||||||
tags:
|
tags:
|
||||||
- user_crontab
|
- user_crontab
|
||||||
|
|
||||||
|
|
||||||
- name: (cron.yml) Set normal entries in user crontabs
|
- name: (cron.yml) Set normal entries in user crontabs
|
||||||
cron:
|
cron:
|
||||||
name: '{{ item.name }}'
|
name: "{{ item.name }}"
|
||||||
minute: '{{ item.minute | default(omit) }}'
|
minute: "{{ item.minute | default(omit) }}"
|
||||||
hour: '{{ item.hour | default(omit) }}'
|
hour: "{{ item.hour | default(omit) }}"
|
||||||
day: '{{ day | default(omit) }}'
|
day: "{{ item.day | default(omit) }}"
|
||||||
weekday: '{{ item.weekday | default(omit) }}'
|
weekday: "{{ item.weekday | default(omit) }}"
|
||||||
month: '{{ item.month | default(omit) }}'
|
month: "{{ item.month | default(omit) }}"
|
||||||
user: '{{ item.user | default("root", true) }}'
|
user: '{{ item.user | default("root") }}'
|
||||||
job: '{{ item.job }}'
|
job: "{{ item.job }}"
|
||||||
loop: "{{ cron_user_entries }}"
|
loop: "{{ cron_user_entries | default([]) }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
label: '{{ item.name }}'
|
label: "{{ item.name }}"
|
||||||
when: item.job is defined
|
when: item.job is defined
|
||||||
tags:
|
tags:
|
||||||
- user_crontab
|
- user_crontab
|
||||||
|
|||||||
@@ -198,7 +198,6 @@
|
|||||||
- samba-server
|
- samba-server
|
||||||
- samba-virusfilter
|
- samba-virusfilter
|
||||||
|
|
||||||
|
|
||||||
- name: (samba-config-server.yml) Configure AppArmor local profile for clamd (data paths)
|
- name: (samba-config-server.yml) Configure AppArmor local profile for clamd (data paths)
|
||||||
template:
|
template:
|
||||||
src: etc/apparmor.d/local/usr.sbin.clamd.j2
|
src: etc/apparmor.d/local/usr.sbin.clamd.j2
|
||||||
@@ -206,7 +205,9 @@
|
|||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
notify: Reload AppArmor profile clamd
|
notify:
|
||||||
|
- Reload AppArmor profile clamd
|
||||||
|
- Restart clamav-daemon
|
||||||
when:
|
when:
|
||||||
- inventory_hostname in groups['samba_server']
|
- inventory_hostname in groups['samba_server']
|
||||||
- samba_shares | selectattr('vfs_object_virusfilter', 'defined') |
|
- samba_shares | selectattr('vfs_object_virusfilter', 'defined') |
|
||||||
@@ -316,7 +317,7 @@
|
|||||||
register: clean_samba_trash_dirs
|
register: clean_samba_trash_dirs
|
||||||
when:
|
when:
|
||||||
- inventory_hostname in groups['samba_server']
|
- inventory_hostname in groups['samba_server']
|
||||||
tags: [ samba-server, samba-cron ]
|
tags: [samba-server, samba-cron]
|
||||||
|
|
||||||
- name: (samba-config-server.yml) Creates a cron job for cleaning up samba trash dirs
|
- name: (samba-config-server.yml) Creates a cron job for cleaning up samba trash dirs
|
||||||
ansible.builtin.cron:
|
ansible.builtin.cron:
|
||||||
@@ -332,7 +333,7 @@
|
|||||||
- inventory_hostname in groups['samba_server']
|
- inventory_hostname in groups['samba_server']
|
||||||
- clean_samba_trash_exists.stat.exists | bool
|
- clean_samba_trash_exists.stat.exists | bool
|
||||||
- (clean_samba_trash_dirs.found | int) > 0
|
- (clean_samba_trash_dirs.found | int) > 0
|
||||||
tags: [ samba-server, samba-cron ]
|
tags: [samba-server, samba-cron]
|
||||||
|
|
||||||
# ---
|
# ---
|
||||||
# Cronjob for setting permissions on samba shares
|
# Cronjob for setting permissions on samba shares
|
||||||
@@ -344,7 +345,7 @@
|
|||||||
register: set_permissions_on_samba_shares_exists
|
register: set_permissions_on_samba_shares_exists
|
||||||
when:
|
when:
|
||||||
- inventory_hostname in groups['samba_server']
|
- inventory_hostname in groups['samba_server']
|
||||||
tags: [ samba-server, samba-cron ]
|
tags: [samba-server, samba-cron]
|
||||||
|
|
||||||
- name: (samba-config-server.yml) Adjust configuration for script 'set_permissions_samba_shares.sh'
|
- name: (samba-config-server.yml) Adjust configuration for script 'set_permissions_samba_shares.sh'
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
@@ -353,7 +354,7 @@
|
|||||||
when:
|
when:
|
||||||
- inventory_hostname in groups['samba_server']
|
- inventory_hostname in groups['samba_server']
|
||||||
- set_permissions_on_samba_shares_exists.stat.exists | bool
|
- set_permissions_on_samba_shares_exists.stat.exists | bool
|
||||||
tags: [ samba-server, samba-cron ]
|
tags: [samba-server, samba-cron]
|
||||||
|
|
||||||
- name: (samba-config-server.yml) Creates a cron job for setting permissions to samba dirs
|
- name: (samba-config-server.yml) Creates a cron job for setting permissions to samba dirs
|
||||||
ansible.builtin.cron:
|
ansible.builtin.cron:
|
||||||
@@ -368,7 +369,7 @@
|
|||||||
when:
|
when:
|
||||||
- inventory_hostname in groups['samba_server']
|
- inventory_hostname in groups['samba_server']
|
||||||
- (clean_samba_trash_dirs.found | int) > 0 # << int -> bool
|
- (clean_samba_trash_dirs.found | int) > 0 # << int -> bool
|
||||||
tags: [ samba-server, samba-cron ]
|
tags: [samba-server, samba-cron]
|
||||||
|
|
||||||
# ---
|
# ---
|
||||||
# Samba clients
|
# Samba clients
|
||||||
|
|||||||
@@ -0,0 +1,12 @@
|
|||||||
|
# {{ ansible_managed }}
|
||||||
|
#
|
||||||
|
# Managed by Ansible: deb822 definition for the Debian backports repository.
|
||||||
|
# It enables deb-src only when apt_src_enable is true and sets Signed-By only
|
||||||
|
# when apt_deb822_use_signed_by is enabled.
|
||||||
|
Types: {{ 'deb deb-src' if apt_src_enable | default(true) | bool else 'deb' }}
|
||||||
|
URIs: {{ apt_debian_mirror }}
|
||||||
|
Suites: {{ ansible_facts['distribution_release'] }}-backports
|
||||||
|
Components: main contrib non-free non-free-firmware
|
||||||
|
{% if apt_deb822_use_signed_by | default(true) | bool %}
|
||||||
|
Signed-By: {{ apt_deb822_signed_by_keyring | default('/usr/share/keyrings/debian-archive-keyring.gpg') }}
|
||||||
|
{% endif %}
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
# {{ ansible_managed }}
|
||||||
|
#
|
||||||
|
# Verwaltet via Ansible - Debian Basis & Updates fuer {{ ansible_facts['distribution_release'] }}
|
||||||
|
Types: {{ 'deb deb-src' if apt_src_enable | default(true) | bool else 'deb' }}
|
||||||
|
URIs: {{ apt_debian_mirror }}
|
||||||
|
Suites: {{ ansible_facts['distribution_release'] }} {{ ansible_facts['distribution_release'] }}-updates
|
||||||
|
Components: main contrib non-free non-free-firmware
|
||||||
|
{% if apt_deb822_use_signed_by | default(true) | bool %}
|
||||||
|
Signed-By: {{ apt_deb822_signed_by_keyring | default('/usr/share/keyrings/debian-archive-keyring.gpg') }}
|
||||||
|
{% endif %}
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
# {{ ansible_managed }}
|
||||||
|
#
|
||||||
|
# Verwaltet via Ansible - Security fuer {{ ansible_facts['distribution_release'] }}
|
||||||
|
Types: {{ 'deb deb-src' if apt_src_enable | default(true) | bool else 'deb' }}
|
||||||
|
URIs: http://security.debian.org/debian-security
|
||||||
|
Suites: {{ ansible_facts['distribution_release'] }}-security
|
||||||
|
Components: main contrib non-free non-free-firmware
|
||||||
|
{% if apt_deb822_use_signed_by | default(true) | bool %}
|
||||||
|
Signed-By: {{ apt_deb822_signed_by_keyring | default('/usr/share/keyrings/debian-archive-keyring.gpg') }}
|
||||||
|
{% endif %}
|
||||||
@@ -342,7 +342,10 @@
|
|||||||
virusfilter:cache entry limit = 1000
|
virusfilter:cache entry limit = 1000
|
||||||
virusfilter:cache time limit = 60
|
virusfilter:cache time limit = 60
|
||||||
|
|
||||||
virusfilter:max file size = 26214400
|
# Dateigröße: Was wird gescannt?
|
||||||
|
#virusfilter:max file size = 52428800 # 50 MB max
|
||||||
|
#virusfilter:max file size = 26214400 # 25 MB max
|
||||||
|
virusfilter:max file size = 15728640 # 15 MB max
|
||||||
virusfilter:min file size = 10
|
virusfilter:min file size = 10
|
||||||
|
|
||||||
virusfilter:scan on open = yes
|
virusfilter:scan on open = yes
|
||||||
@@ -522,13 +525,28 @@
|
|||||||
|
|
||||||
# Dateigröße: Was wird gescannt?
|
# Dateigröße: Was wird gescannt?
|
||||||
#virusfilter:max file size = 52428800 # 50 MB max
|
#virusfilter:max file size = 52428800 # 50 MB max
|
||||||
virusfilter:max file size = 26214400 # 25 MB max
|
#virusfilter:max file size = 26214400 # 25 MB max
|
||||||
|
virusfilter:max file size = 15728640 # 15 MB max
|
||||||
virusfilter:min file size = 10 # unter 10 Byte ignorieren
|
virusfilter:min file size = 10 # unter 10 Byte ignorieren
|
||||||
|
|
||||||
# Scan-Zeitpunkt: nur beim Öffnen, nicht beim Schließen
|
# Scan-Zeitpunkt: nur beim Öffnen, nicht beim Schließen
|
||||||
virusfilter:scan on open = yes
|
virusfilter:scan on open = yes
|
||||||
virusfilter:scan on close = yes
|
virusfilter:scan on close = yes
|
||||||
|
|
||||||
|
{% set virusfilter_include_files = item.vfs_object_virusfilter_include_files | default([]) %}
|
||||||
|
{% set virusfilter_exclude_files = item.vfs_object_virusfilter_exlude_files | default(item.vfs_object_virusfilter_exclude_files | default([])) %}
|
||||||
|
{% if virusfilter_include_files | length > 0 %}
|
||||||
|
# Nur diese Dateiendungen vom Virusfilter pruefen.
|
||||||
|
virusfilter:include files = \.({{ virusfilter_include_files | join('|') }})$
|
||||||
|
{% if virusfilter_exclude_files | length > 0 %}
|
||||||
|
# Include und Exclude sind gesetzt: Include hat Vorrang, Exclude wird ignoriert.
|
||||||
|
#virusfilter:exclude files = \.({{ virusfilter_exclude_files | join('|') }})$
|
||||||
|
{% endif %}
|
||||||
|
{% elif virusfilter_exclude_files | length > 0 %}
|
||||||
|
# Diese Dateiendungen von der Viruspruefung ausschliessen.
|
||||||
|
virusfilter:exclude files = \.({{ virusfilter_exclude_files | join('|') }})$
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
# Fehlercode bei infizierter Datei (beim Öffnen)
|
# Fehlercode bei infizierter Datei (beim Öffnen)
|
||||||
virusfilter:infected file errno on open = EACCES
|
virusfilter:infected file errno on open = EACCES
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user