diff --git a/.ansible-lint b/.ansible-lint index 071c3f4c392c67e9a662816a8f234975d2db78df..98d64bde5c20850a5ece53a01f2b271b448361b5 100644 --- a/.ansible-lint +++ b/.ansible-lint @@ -38,6 +38,7 @@ skip_list: - skip_this_tag - git-latest - name[casing] + - package-latest # Any rule that has the 'opt-in' tag will not be loaded unless its 'id' is # mentioned in the enable_list: diff --git a/tasks/install_subapp.yml b/tasks/install_subapp.yml index 4243fcf54d5dfcda9608ade6217d1804934efb57..3438ce19bf4c240baac1fa1c992748c647e63ae2 100644 --- a/tasks/install_subapp.yml +++ b/tasks/install_subapp.yml @@ -75,7 +75,9 @@ daemon-reload: "true" tags: [systemd] -- name: check which Services are enabled +# We check this using the `command` module, because the `systemd` module fails +# if the unit doesn't exist. Hence, we also ignore the linter warning. +- name: check which Services are enabled # noqa command-instead-of-module ansible.builtin.command: "systemctl is-enabled {{ item }}" loop: - "chmod_sip_uploads.service" diff --git a/tasks/remove_packages.yml b/tasks/remove_packages.yml index a2176b765d06425b834ea7e0738966cbb4e1f553..eb994417a0cbac8aef7512bb73255f338cee5618 100644 --- a/tasks/remove_packages.yml +++ b/tasks/remove_packages.yml @@ -2,7 +2,9 @@ ### PAKETDEINSTALLATIONEN ### - name: clamav entfernen block: - - name: clamav Prüfung + # This cannot be done using the `systemd` module, so we ignore the linter + # warning. + - name: clamav Prüfung # noqa command-instead-of-module # command: systemctl list-unit-files | grep clam ansible.builtin.command: systemctl list-unit-files clamav-daemon.service clamav-freshclam.service register: check_clamav_installed