From 8f25ffccc94f08145cc8fc471634021965c78ec6 Mon Sep 17 00:00:00 2001 From: Sleuth56 <34520077+Sleuth56@users.noreply.github.com> Date: Sun, 6 Nov 2022 18:47:08 -0500 Subject: [PATCH] Add apt update when on a debian based system --- tasks/main.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tasks/main.yml b/tasks/main.yml index e2e8aa1..66a9007 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,4 +1,9 @@ --- +- name: Update APT repositories. + ansible.builtin.apt: + update_cache: yes + when: ansible_facts['distribution'] == "Debian" + - name: Ensure Pip is installed. package: name: "{{ pip_package }}"