From 34a30c4d133e5bee4b947e7edd59f7110bc3be8e Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Wed, 8 Sep 2021 17:05:48 +0300 Subject: [PATCH] roles/common: Don't update apt cache when removing packages --- roles/common/tasks/ntp.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/common/tasks/ntp.yml b/roles/common/tasks/ntp.yml index 8035c9d..ab07eb3 100644 --- a/roles/common/tasks/ntp.yml +++ b/roles/common/tasks/ntp.yml @@ -21,7 +21,7 @@ systemd: name=systemd-timesyncd state=started enabled=yes - name: Uninstall ntp on modern Ubuntu/Debian - apt: name=ntp state=absent update_cache=yes + apt: name=ntp state=absent when: ansible_service_mgr == 'systemd' # vim: set ts=2 sw=2: