pacman/tasks/main.yml
Knut Ahlers e2a2f43661
Add pacman upgrade
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2021-01-11 13:57:36 +01:00

21 lines
452 B
YAML

---
- name: Refresh Pacman caches
pacman:
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") }}'
name: '{{ item.name }}'
state: '{{ item.state | default("present") }}'
upgrade: '{{ item.upgrade | default(omit) }}'
with_items: '{{ pacman_packages }}'
...