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