From 08bb61e26c68c79bbf3b61e8285f16ffea8c7234 2023-11-19 17:25:40 From: Branko Majic Date: 2023-11-19 17:25:40 Subject: [PATCH] MAR-181: Disable linting check for apt cache update that has to happen mid-run. --- diff --git a/roles/xmpp_server/tasks/main.yml b/roles/xmpp_server/tasks/main.yml index ed6b45a5bdf1f11d1993bc6bf7046547b062a378..0ecc11151c65e44dc7c97e68a7991ccdb127e120 100644 --- a/roles/xmpp_server/tasks/main.yml +++ b/roles/xmpp_server/tasks/main.yml @@ -13,7 +13,12 @@ mode: 0644 register: backports_repository_configuration -- name: Update apt cache if backports repository configuration changed (for immediate use) +- name: Update apt cache if backports repository configuration changed (for immediate use) # noqa 503 + # [503] Tasks that run when changed should likely be handlers + # Since apt_repository module is not reliable (does not deploy + # change when changing distro version etc), we have to use + # template instead, but this also means we need to trigger the apt + # cache reload by hand. apt: update_cache: true when: backports_repository_configuration.changed