17 lines
380 B
YAML
17 lines
380 B
YAML
---
|
|
|
|
- name: Install packages if Debian based
|
|
apt:
|
|
name: unattended-upgrades
|
|
state: present
|
|
update_cache: true
|
|
become: true
|
|
|
|
- name: Apt Config (/etc/apt.conf.d/10periodic)
|
|
ansible.builtin.template:
|
|
src: ../templates/10periodic.j2
|
|
dest: /etc/apt/apt.conf.d/10periodic
|
|
owner: root
|
|
group: root
|
|
mode: '0644'
|
|
notify: restart-unattendedupgrades
|