- name: Install nginx package (Archlinux) when: ansible_facts['os_family'] == "Archlinux" community.general.pacman: name: - nginx state: present update_cache: true