Add ansible-lint to CI (#1181)

* Improve Ansible code.

* Add some ansible-lint ignores.

* Add ansible-lint to CI.
This commit is contained in:
Felix Fontein
2025-10-25 11:07:40 +02:00
committed by GitHub
parent b24bce77b6
commit 95bdce75e6
35 changed files with 123 additions and 85 deletions
@@ -4,7 +4,7 @@
# SPDX-License-Identifier: GPL-3.0-or-later
- name: Get OS version
ansible.builtin.shell: uname -r
ansible.builtin.command: uname -r
register: os_version
- name: Install pre-reqs
@@ -35,7 +35,7 @@
name: Add Docker repo on Ubuntu 20 or before, or Debian 11 or before
block:
- name: Add gpg key
ansible.builtin.shell: curl -fsSL https://download.docker.com/linux/{{ ansible_distribution | lower }}/gpg >key && apt-key add key
ansible.builtin.shell: curl -fsSL https://download.docker.com/linux/{{ ansible_distribution | lower }}/gpg >key && apt-key add key # noqa: command-instead-of-module
- name: Add Docker repo
ansible.builtin.apt_repository: