elevated privileges for docker error

This commit is contained in:
2026-01-30 15:20:14 -05:00
parent 286c58b4e3
commit a04f51cc69
2 changed files with 12 additions and 9 deletions

View File

@@ -1,11 +1,13 @@
- hosts: VMs
# Use with: ansible-playbook -i inventories/inventory.proxmox.yml playbooks/dockerPrune.yaml --limit docker_hosts
- name: Prune Docker resources
hosts: docker_hosts
become: true
gather_facts: no
tasks:
- name: Prune all unused containers, images, networks, volumes
community.docker.docker_prune:
containers: true
images: true
networks: true
volumes: true
builder_cache: true
- name: Prune all unused containers, images, networks, volumes
community.docker.docker_prune:
containers: true
images: true
networks: true
volumes: true
builder_cache: true

View File

@@ -1,6 +1,7 @@
# Use with: ansible-playbook -i inventories/inventory.proxmox.yml playbooks/dockerUpdate.yml --limit docker_hosts
- name: Update Docker containers
hosts: docker_hosts
become: true
vars:
docker_directories:
Plex: