Browse Source

Add auto apt update to Debian.

master
Dan Helfman 1 month ago
parent
commit
97437012f0
  1. 16
      roles/common/tasks/main.yml

16
roles/common/tasks/main.yml

@ -53,6 +53,22 @@
tags:
- common
- name: install unattended upgrades on Debian
apt: name=unattended-upgrades
when: ansible_distribution == "Debian"
tags:
- common
- name: configure unattended upgrades to only apt update (and not install) on Debian
lineinfile:
dest: /etc/apt/apt.conf.d/20auto-upgrades
state: present
regexp: "^APT::Periodic::Unattended-Upgrade"
line: "APT::Periodic::Unattended-Upgrade \"0\";"
when: ansible_distribution == "Debian"
tags:
- common
- name: install sudo on Debian
apt: name=sudo
when: ansible_distribution == "Debian"

Loading…
Cancel
Save