fix: use become for dnf & apt

This commit is contained in:
Price Hiller 2022-08-01 18:29:46 -05:00
parent 527056d197
commit e815543b57

View File

@ -1,10 +1,12 @@
---
- name: Update Apt cache
become: true
ansible.builtin.apt:
update_cache: true
when: ansible_facts.os_family == 'Debian'
- name: Update DNF cache
become: true
ansible.builtin.dnf:
update_cache: true
when: ansible_facts.os_family == 'RedHat'