first commit
This commit is contained in:
25
webmin/fix-apt-playbook.yml
Normal file
25
webmin/fix-apt-playbook.yml
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
- 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
|
||||
Reference in New Issue
Block a user