apt-base: Don't list "APT update" as "changed", even when run
authorAlexander Barton <alex@barton.de>
Mon, 19 Feb 2018 17:02:26 +0000 (18:02 +0100)
committerAlexander Barton <alex@barton.de>
Mon, 19 Feb 2018 17:02:26 +0000 (18:02 +0100)
This "only" updates the local APT package database periodically, and we
don't want Ansible to cont (and show!) this as "changed" when actually
nothing happend to the system configuration itself.

roles/apt-base/tasks/main.yml

index 4217213769c889e3decd6c9aa124a562ca32bbec..2a6d52366e00ecde9e8dfe4e5c4fab2af934ae5c 100644 (file)
@@ -42,6 +42,7 @@
   apt: >
     update_cache=yes
     cache_valid_time=3600
+  changed_when: false
 
 - name: configure debconf(1) frontend
   tags: