xbazzi e7ba86f10a
All checks were successful
Simple Mirror to GitHub / mirror (push) Successful in 35s
Feat: add scylladb + a bunch of stuff I forgot to commit earlier
2025-08-21 23:43:52 -06:00

38 lines
829 B
YAML

---
- name: Leave Docker Swarm (if member)
ansible.builtin.shell: docker swarm leave --force || true
ignore_errors: true
- name: Stop Docker service
ansible.builtin.systemd_service:
name: docker
state: stopped
enabled: true
- name: Remove Docker data directories
ansible.builtin.file:
path: "{{ item }}"
state: absent
loop:
- /var/lib/docker
- /var/lib/docker/volumes
- /var/lib/docker/swarm
- /var/lib/docker/network
- /etc/docker/key.json
- /run/docker
ignore_errors: true
- name: Remove dnf packages
ansible.builtin.dnf:
name:
- docker
- docker-client
- docker-client-latest
- docker-common
- docker-latest
- docker-latest-logrotate
- docker-logrotate
- docker-engine
- podman
- runc
state: absent