From 01c366f1d01af03b0cad30330ffe220077a5e29d Mon Sep 17 00:00:00 2001 From: Andrey Limachko Date: Mon, 18 Apr 2022 14:50:52 +0400 Subject: [PATCH] Fix update_cache to omit removed tasks warnings --- roles/common/tasks/main.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/roles/common/tasks/main.yml b/roles/common/tasks/main.yml index 43c2fb4..8d74705 100644 --- a/roles/common/tasks/main.yml +++ b/roles/common/tasks/main.yml @@ -55,7 +55,11 @@ shell: apt-get update - name: update apt and rpm - shell: apt-get install -y apt rpm + apt_rpm: + pkg: + - apt + - rpm + state: installed - name: dist-upgrade shell: apt-get -y dist-upgrade @@ -82,7 +86,6 @@ apt_rpm: pkg: ntpdate,curl state: installed - update_cache: yes - name: install Alterator`s modules apt_rpm: