--- - 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 }}' ...