From 3ab93fd509e45b2924534787bece4fbee7a4a27b Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Thu, 8 Apr 2021 00:46:07 +0200 Subject: [PATCH] [apt] Update cache Signed-off-by: Yohann D'ANELLO --- roles/apt/tasks/main.yml | 4 ++++ roles/cli-utils/tasks/main.yml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/roles/apt/tasks/main.yml b/roles/apt/tasks/main.yml index 6f56078..e28df95 100644 --- a/roles/apt/tasks/main.yml +++ b/roles/apt/tasks/main.yml @@ -36,3 +36,7 @@ with_nested: - ["sources.list", "preferences"] - "{{ apt.pin|dict2items }}" + +- name: Update APT cache + apt: + update_cache: true diff --git a/roles/cli-utils/tasks/main.yml b/roles/cli-utils/tasks/main.yml index ca780a9..100b6de 100644 --- a/roles/cli-utils/tasks/main.yml +++ b/roles/cli-utils/tasks/main.yml @@ -8,7 +8,7 @@ - bind-tools - git - man - - mtr + - "{% if ansible_os_family == 'Archlinux' %}mtr{% else %}mtr-tiny{% endif %}" - sl - htop - patch