How about we just get rid of unattended-upgrades instead of disabling it?

This commit is contained in:
Salt 2020-09-04 06:55:10 -05:00
parent 7a955f85cf
commit d43e0b8426
3 changed files with 6 additions and 15 deletions

View File

@ -49,10 +49,7 @@
- "92-unattended-upgrades"
- "95-hwe-eol"
- "97-overlayroot"
when: ansible_os_family == "Debian"
when: ansible_distribution == "Ubuntu"
- name: Configure Ansible user
include_tasks: ansibleuser.yml
- name: Configure services
include_tasks: services.yml
when: ansible_os_family == "Debian"
become: yes

View File

@ -30,6 +30,11 @@
install_recommends: no
name:
- smartmontools
- name: Remove packages
apt:
state: absent
name:
- unattended-upgrades
become: yes
when: ansible_os_family == "Debian"
- name: Install packages via APK

View File

@ -1,11 +0,0 @@
#!/usr/bin/ansible-playbook
# vim:ft=ansible:
---
- name: Configure services
systemd:
name: "{{ item.name }}"
state: "{{ item.state }}"
enabled: "{{ item.enabled }}"
loop:
- { name: "unattended-upgrades", state: "stopped", enabled: no }
become: yes