From 92fda034cc6921fdf8ef455f1facee9698e2483f Mon Sep 17 00:00:00 2001 From: admin Date: Sat, 13 Dec 2025 13:11:52 +0000 Subject: [PATCH] Update proxmox-docker-install.yml --- proxmox-docker-install.yml | 57 ++------------------------------------ 1 file changed, 2 insertions(+), 55 deletions(-) diff --git a/proxmox-docker-install.yml b/proxmox-docker-install.yml index bf8cc1c..f10b77b 100644 --- a/proxmox-docker-install.yml +++ b/proxmox-docker-install.yml @@ -9,59 +9,6 @@ vmid: "{{ target_vmid | default('n/a') }}" tasks: - - name: Show which node and VMID are selected + - name: Show execution target ansible.builtin.debug: - msg: "Installing Docker for node={{ node }} vmid={{ vmid }} host={{ inventory_hostname }}" - - - name: Update apt cache - ansible.builtin.apt: - update_cache: yes - - - name: Install prerequisites - ansible.builtin.apt: - name: [ca-certificates, curl, gnupg, lsb-release] - state: present - - - name: Create keyrings directory - ansible.builtin.file: - path: /etc/apt/keyrings - state: directory - mode: '0755' - - - name: Add Docker GPG key - ansible.builtin.get_url: - url: https://download.docker.com/linux/ubuntu/gpg - dest: /etc/apt/keyrings/docker.asc - mode: '0644' - - - name: Add Docker repository - ansible.builtin.apt_repository: - repo: "deb [arch=amd64 signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu {{ ansible_distribution_release }} stable" - state: present - filename: docker - - - name: Update apt cache after adding Docker repo - ansible.builtin.apt: - update_cache: yes - - - name: Install Docker engine and plugins - ansible.builtin.apt: - name: - - docker-ce - - docker-ce-cli - - containerd.io - - docker-buildx-plugin - - docker-compose-plugin - state: present - - - name: Start and enable Docker service - ansible.builtin.systemd: - name: docker - state: started - enabled: yes - - - name: Add SSH user to docker group - ansible.builtin.user: - name: "{{ ansible_user_id }}" - groups: docker - append: yes \ No newline at end of file + msg: "Installing Docker on VM {{ inventory_hostname }} (node={{ node }}, vmid={{ vmid }})"