mirror of
https://github.com/luzifer-ansible/pacman.git
synced 2024-12-23 11:21:17 +00:00
21 lines
452 B
YAML
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 }}'
|
|
|
|
...
|