Add pacman upgrade

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

View file

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

View file

@ -5,6 +5,11 @@
update_cache: true
when: pacman_update_cache
- name: Upgrade installed packages
pacman:
upgrade: true
when: pacman_upgrade_system
- name: Install Pacman packages
pacman:
force: '{{ item.force | default("no") }}'