Files
automation/ansible-playbooks/webmin/fix-apt-playbook.yml
2026-04-11 08:42:29 +02:00

26 lines
496 B
YAML

---
- name: Cleanup broken Webmin repository
hosts: all
become: yes
tasks:
- name: Remove old Webmin repository file
file:
path: /etc/apt/sources.list.d/webmin.list
state: absent
- name: Remove Webmin GPG keyring (optional)
file:
path: /usr/share/keyrings/webmin.gpg
state: absent
- name: Clean apt cache
apt:
autoclean: yes
autoremove: yes
- name: Update apt cache
apt:
update_cache: yes