mirror of
https://github.com/RWejlgaard/pez-infra.git
synced 2026-05-06 04:14:43 +00:00
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
This commit is contained in:
parent
2d6b3957f9
commit
be96f205df
1 changed files with 1 additions and 11 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue