🚨 Modernize ansible-lint silence markup

Fixes the following warning when running `ansible-lint`:

    WARNING  Replaced outdated tag '503' with 'no-handler', replace it to avoid future regressions

Link: https://ansible.readthedocs.io/projects/lint/rules/no-handler/
This commit is contained in:
Alexander Dahl 2025-02-19 21:40:23 +01:00
parent fd01c68746
commit 49dd796a05
4 changed files with 4 additions and 4 deletions

View file

@ -141,7 +141,7 @@
mode: "0644"
register: wiringPi_copy
- name: Install wiringPi library # noqa 503
- name: Install wiringPi library # noqa: no-handler
ansible.builtin.apt:
state: present
deb: "/home/{{ gatekeeper_user }}/wiringpi-latest.deb"

View file

@ -94,7 +94,7 @@
force: no
register: wiringPi_download
- name: Install wiringPi library # noqa 503
- name: Install wiringPi library # noqa: no-handler
ansible.builtin.apt:
state: present
deb: "/home/{{ gatekeeper_user }}/wiringpi-latest.deb"

View file

@ -34,7 +34,7 @@
dest: /etc/apt/sources.list.d/docker.list
register: apt_repo
- name: Update package cache # noqa 503
- name: Update package cache # noqa: no-handler
ansible.builtin.apt:
update_cache: true
when: apt_repo.changed

View file

@ -33,7 +33,7 @@
src: files/apt-preference-99nginx
dest: /etc/apt/preferences.d/99nginx
- name: Update package cache # noqa 503
- name: Update package cache # noqa: no-handler
ansible.builtin.apt:
update_cache: true
when: apt_repo.changed