Skip to content

Commit

Permalink
Merge pull request #663 from konstruktoid/autoupdate
Browse files Browse the repository at this point in the history
ensure unattended-upgrades are installed
  • Loading branch information
konstruktoid authored May 29, 2024
2 parents a8a9d48 + c5ac671 commit 04712f3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tasks/automatic_updates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,15 @@
when:
- ansible_os_family == "Debian"
block:
- name: Install unattended-upgrades
ansible.builtin.apt:
name: unattended-upgrades
state: present
update_cache: true
notify:
- Run apt-get clean
- Run apt-get autoremove

- name: Configure unattended-upgrades package lists updates
ansible.builtin.lineinfile:
dest: /etc/apt/apt.conf.d/20auto-upgrades
Expand Down

0 comments on commit 04712f3

Please sign in to comment.