From 22e1bca5da9e61618d03aff8006ab6bcfb9c4bd2 Mon Sep 17 00:00:00 2001 From: Thomas Schneider <thomas@fsmpi.rwth-aachen.de> Date: Tue, 28 Nov 2023 15:41:32 +0100 Subject: [PATCH] *: Fix new ansible-lint issues --- basic-system/handlers/main.yml | 4 +++- localization/handlers/main.yml | 1 + shell/handlers/main.yml | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/basic-system/handlers/main.yml b/basic-system/handlers/main.yml index aec3244..3da1810 100644 --- a/basic-system/handlers/main.yml +++ b/basic-system/handlers/main.yml @@ -11,9 +11,11 @@ state: restarted - name: configure journal directory + # noqa no-changed-when command: systemd-tmpfiles --create --prefix /var/log/journal - name: update initramfs + # noqa no-changed-when command: update-initramfs -u - name: gather network facts once again @@ -27,6 +29,6 @@ - name: Remove pve directory from etckeeper repo # ansible-lint wants us to use the ansible git module, but it doesn’t # provide that feature - shell: # noqa: command-instead-of-module + shell: # noqa: command-instead-of-module no-changed-when chdir: /etc cmd: git rm --cached -r -- pve && git commit -m "'Remove pve directory'" diff --git a/localization/handlers/main.yml b/localization/handlers/main.yml index edcbd1d..9a96335 100644 --- a/localization/handlers/main.yml +++ b/localization/handlers/main.yml @@ -11,4 +11,5 @@ state: restarted - name: update timezone + # noqa no-changed-when command: dpkg-reconfigure --frontend noninteractive tzdata diff --git a/shell/handlers/main.yml b/shell/handlers/main.yml index 193f481..d35eb6e 100644 --- a/shell/handlers/main.yml +++ b/shell/handlers/main.yml @@ -1,7 +1,9 @@ --- - name: rerun depmod + # noqa no-changed-when command: depmod -ae - name: update initramfs + # noqa no-changed-when command: update-initramfs -u -- GitLab