From be96f205df844f482adfe2d0d6d90a01be4d0405 Mon Sep 17 00:00:00 2001 From: Rasmus Wejlgaard Date: Sun, 29 Mar 2026 20:03:56 +0000 Subject: [PATCH] fix: resolve yamllint violations in docker role - Remove standalone comment blocks that caused indentation errors - Collapse multiline repo string to single line - Ensure document start marker is present --- ansible/roles/docker/tasks/main.yml | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/ansible/roles/docker/tasks/main.yml b/ansible/roles/docker/tasks/main.yml index 82e964d..a77e19c 100644 --- a/ansible/roles/docker/tasks/main.yml +++ b/ansible/roles/docker/tasks/main.yml @@ -1,8 +1,6 @@ --- # Set up Docker's official apt repository and install Docker + Compose plugin. -# --- Debian/Ubuntu: add Docker official repo --- - - name: Install prerequisites for Docker repo (Debian/Ubuntu) ansible.builtin.apt: name: @@ -30,11 +28,7 @@ - name: Add Docker apt repository ansible.builtin.apt_repository: - repo: >- - deb [arch={{ ansible_facts['architecture'] | regex_replace('x86_64', 'amd64') | regex_replace('aarch64', 'arm64') }} - signed-by=/etc/apt/keyrings/docker.asc] - https://download.docker.com/linux/{{ 'ubuntu' if ansible_facts['distribution'] == 'Ubuntu' else 'debian' }} - {{ ansible_facts['distribution_release'] }} stable + repo: "deb [arch={{ ansible_facts['architecture'] | regex_replace('x86_64', 'amd64') | regex_replace('aarch64', 'arm64') }} signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/{{ 'ubuntu' if ansible_facts['distribution'] == 'Ubuntu' else 'debian' }} {{ ansible_facts['distribution_release'] }} stable" filename: docker state: present update_cache: true @@ -58,8 +52,6 @@ state: absent when: ansible_facts["os_family"] == "Debian" -# --- Alpine --- - - name: Install Docker (Alpine) community.general.apk: name: @@ -68,8 +60,6 @@ state: present when: ansible_facts["os_family"] == "Alpine" -# --- Common --- - - name: Enable and start Docker ansible.builtin.service: name: docker