This commit is contained in:
2026-10-12 18:51:07 +02:00
parent 11eee62a3c
commit 056038c780
29 changed files with 958 additions and 109 deletions
+10
View File
@@ -196,6 +196,16 @@
# ----------
# unattended upgrades
# ----------
#
- name: (basic.yml) update
ansible.builtin.command: apt-get update # noqa: command-instead-of-module
changed_when: false
environment:
DEBIAN_FRONTEND: noninteractive
when:
- ansible_facts['distribution'] == "Debian"
- apt_update|bool
- name: (basic.yml) install unattended-upgrades
ansible.builtin.apt:
+14
View File
@@ -59,6 +59,20 @@
- copy-files
- copy-template-files
- name: (copy_files.yml) Ensure directory /etc/postfix exists
ansible.builtin.file:
path: /etc/postfix
state: directory
owner: root
group: root
mode: "0755"
when:
- inventory_hostname in groups['mail_server']
tags:
- copy-files
- copy-plain-files
- copy-template-files
- name: (copy_files.yml) GLOBAL copy plain files Postfix (/etc/postfix)
ansible.builtin.copy:
src: "{{ item.src_path }}"