Update proxmox-docker-install.yml

This commit is contained in:
2025-12-13 14:57:41 +00:00
parent bccd109ad0
commit 45e1aafb42

View File

@@ -93,27 +93,14 @@
update_cache: true update_cache: true
# ---- Install path A: Docker CE (preferred) ---- # ---- Install path A: Docker CE (preferred) ----
- name: Try install Docker CE + plugins (preferred) - name: Install Docker from Ubuntu repo (Ubuntu 24.04 noble)
ansible.builtin.apt:
name:
- docker-ce
- docker-ce-cli
- containerd.io
- docker-buildx-plugin
- docker-compose-plugin
state: present
register: docker_ce_install
ignore_errors: true
# ---- Install path B: Ubuntu repo fallback ----
# docker-compose-plugin isn't always available; docker-compose (v1) often is.
- name: Fallback install Docker from Ubuntu repo
ansible.builtin.apt: ansible.builtin.apt:
name: name:
- docker.io - docker.io
- docker-compose-plugin - docker-compose-v2
state: present state: present
when: docker_ce_install is failed update_cache: true
- name: Enable and start Docker service - name: Enable and start Docker service
ansible.builtin.systemd: ansible.builtin.systemd: