ansible/roles/apt/tasks/main.yml

18 lines
380 B
YAML
Raw Normal View History

2022-12-14 17:43:16 +01:00
---
- 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