Skip to content

Instantly share code, notes, and snippets.

@NetguruGist
Created February 14, 2017 10:20
Show Gist options
  • Save NetguruGist/1b9689550dd9f024acdf448a637b4c7c to your computer and use it in GitHub Desktop.
Save NetguruGist/1b9689550dd9f024acdf448a637b4c7c to your computer and use it in GitHub Desktop.
- name: "Automated security updates"
apt: name=unattended-upgrades state=present
- file: path=/etc/apt/apt.conf.d/10periodic state=absent
- blockinfile:
dest: /etc/apt/apt.conf.d/10periodic
create: yes
block: |
APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Download-Upgradeable-Packages "1";
APT::Periodic::AutocleanInterval "7";
APT::Periodic::Unattended-Upgrade "1";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment