update..
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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 }}"
|
||||
|
||||
Reference in New Issue
Block a user