- name: upgrade all packages when: ansible_facts.os_family == 'Archlinux' community.general.pacman: # executable: yay force: yes state: latest update_cache: yes upgrade: yes