Add update_cache step

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2021-01-11 13:48:04 +01:00
parent 99dda06368
commit 16dfef2bd0
Signed by: luzifer
GPG key ID: 0066F03ED215AD7D
2 changed files with 6 additions and 0 deletions

View file

@ -1,5 +1,6 @@
--- ---
pacman_packages: [] pacman_packages: []
pacman_update_cache: false
... ...

View file

@ -1,5 +1,10 @@
--- ---
- name: Refresh Pacman caches
pacman:
update_cache: true
when: pacman_update_cache
- name: Install Pacman packages - name: Install Pacman packages
pacman: pacman:
force: '{{ item.force | default("no") }}' force: '{{ item.force | default("no") }}'