Commit 83a0319e by Kevin Falcone

Disable systemd timers that auto-upgrade

parent 584125b9
...@@ -22,6 +22,13 @@ ...@@ -22,6 +22,13 @@
mode: "0644" mode: "0644"
when: SECURITY_UNATTENDED_UPGRADES when: SECURITY_UNATTENDED_UPGRADES
- name: Disable unattended-upgrades if Xenial (16.04)
command: "{{ item }}"
when: ansible_distribution_release == 'xenial' and not SECURITY_UNATTENDED_UPGRADES
with_items:
- "systemctl disable apt-daily.service"
- "systemctl disable apt-daily.timer"
- name: Disable unattended-upgrades - name: Disable unattended-upgrades
file: file:
path: "/etc/apt/apt.conf.d/10periodic" path: "/etc/apt/apt.conf.d/10periodic"
...@@ -85,4 +92,4 @@ ...@@ -85,4 +92,4 @@
name: libc6 name: libc6
state: latest state: latest
update_cache: yes update_cache: yes
when: "'vulnerable' in test_ghost_vuln.stdout" when: "'vulnerable' in test_ghost_vuln.stdout"
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment