ansible-edda/playbooks/roles/system/base/tasks/include/unattended_upgrades.yml

17 lines
526 B
YAML

---
- name: "unattended_upgrades : install unattended-upgrades"
ansible.builtin.apt:
name: "unattended-upgrades"
- name: "unattended_upgrades : configure unattended-upgrades"
ansible.builtin.copy:
src: "./unattended_upgrades/50unattended-upgrades"
dest: "/etc/apt/apt.conf.d/50unattended-upgrades"
mode: 0644
- name: "unattended_upgrades : enable unattended-upgrades"
ansible.builtin.copy:
src: "./unattended_upgrades/20auto-upgrades"
dest: "/etc/apt/apt.conf.d/20auto-upgrades"
mode: 0644