From 49dd796a05d2f812427ca20f3e5954d43e8aa5e7 Mon Sep 17 00:00:00 2001 From: Alexander Dahl Date: Wed, 19 Feb 2025 21:40:23 +0100 Subject: [PATCH] :rotating_light: 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/ --- host-platon.yml | 2 +- host-wittgenstein.yml | 2 +- roles/docker_setup/tasks/main.yml | 2 +- roles/nginx_https_ingress/tasks/main.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/host-platon.yml b/host-platon.yml index 41d033c..b16bb93 100644 --- a/host-platon.yml +++ b/host-platon.yml @@ -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" diff --git a/host-wittgenstein.yml b/host-wittgenstein.yml index c770b5f..955b425 100644 --- a/host-wittgenstein.yml +++ b/host-wittgenstein.yml @@ -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" diff --git a/roles/docker_setup/tasks/main.yml b/roles/docker_setup/tasks/main.yml index cdfedfb..5a42436 100644 --- a/roles/docker_setup/tasks/main.yml +++ b/roles/docker_setup/tasks/main.yml @@ -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 diff --git a/roles/nginx_https_ingress/tasks/main.yml b/roles/nginx_https_ingress/tasks/main.yml index 64884a5..aa5a4bb 100644 --- a/roles/nginx_https_ingress/tasks/main.yml +++ b/roles/nginx_https_ingress/tasks/main.yml @@ -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