ansible/roles/apt/tasks/main.yml
Markus Hauschild bc061dff94
All checks were successful
continuous-integration/drone/push Build is passing
apt: use list instead of with_items
2020-06-23 21:45:56 +02:00

25 lines
773 B
YAML

---
- name: Configure apt not to install recommends packages
copy: src=apt-recommends.conf dest=/etc/apt/apt.conf.d/40recommends
- name: Install apt related tools
apt:
name:
- apt-transport-https
- debian-goodies
- lsof
- unattended-upgrades
- name: Configure periodic apt updates
copy: src=apt-periodic.conf dest=/etc/apt/apt.conf.d/10periodic
- name: Configure unattended-upgrades
copy: src=unattended-upgrades.conf dest=/etc/apt/apt.conf.d/50unattended-upgrades
- name: Configure dpkg to run with unattended-upgrades
copy: src=unattended-upgrades-dpkg.conf dest=/etc/apt/apt.conf.d/51unattended-upgrades
- name: Configure apt to run checkrestart after updates
copy: src=apt-checkrestart.conf dest=/etc/apt/apt.conf.d/99checkrestart