Skip to content

Instantly share code, notes, and snippets.

@hyperized
Created October 16, 2019 09:02
Show Gist options
  • Save hyperized/b3810695c8327cd8a783786754c5c403 to your computer and use it in GitHub Desktop.
Save hyperized/b3810695c8327cd8a783786754c5c403 to your computer and use it in GitHub Desktop.
Basic steps
- name: disable automatic list updates
lineinfile:
path: /etc/apt/apt.conf.d/20auto-upgrades
regexp: '^APT::Periodic::Update-Package-Lists*'
line: 'APT::Periodic::Update-Package-Lists "0";'
- name: disable automatic updates
lineinfile:
path: /etc/apt/apt.conf.d/20auto-upgrades
regexp: '^APT::Periodic::Unattended-Upgrade*'
line: 'APT::Periodic::Unattended-Upgrade "0";'
- name: ensure image is fully up to date
apt:
upgrade: dist
update_cache: yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment