ansible-roles/system/base/unattended_upgrades/tasks/main.yml

17 lines
420 B
YAML
Raw Normal View History

2022-12-20 19:47:11 +01:00
---
- name: "install unattended-upgrades"
ansible.builtin.apt:
name: "unattended-upgrades"
- name: "configure unattended-upgrades"
ansible.builtin.copy:
src: "./50unattended-upgrades"
dest: "/etc/apt/apt.conf.d/50unattended-upgrades"
mode: 0644
- name: "enable unattended-upgrades"
ansible.builtin.copy:
src: "./20auto-upgrades"
dest: "/etc/apt/apt.conf.d/20auto-upgrades"
mode: 0644