- name: PREREQUIREMENTS | Update package index raw: pacman -Sy register: command_res changed_when: false - name: PREREQUIREMENTS | Install packages raw: pacman --needed --noconfirm -S {{ item }} with_items: '{{ ansible_prerequirements_packages }}' register: command_res changed_when: "'there is nothing to do' not in command_res.stdout" - name: PREREQUIREMENTS | Gather facts setup: null - name: PEREQUIREMENTS | Update inventory set_fact: ansible_python_interpreter: python3