Add apt update when on a debian based system

This commit is contained in:
Sleuth56 2022-11-06 18:47:08 -05:00 committed by GitHub
parent 0360ca42ee
commit 8f25ffccc9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -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 }}"