pacman/tasks/main.yml

22 lines
452 B
YAML
Raw Normal View History

2020-07-10 11:52:19 +00:00
---
- name: Refresh Pacman caches
pacman:
update_cache: true
when: pacman_update_cache
- name: Upgrade installed packages
pacman:
upgrade: true
when: pacman_upgrade_system
2020-07-10 11:52:19 +00:00
- 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 }}'
...