- name: System update pacman: update_cache: yes upgrade: yes - name: Install common packages pacman: name: "{{ common_packages }}" when: - common_packages is defined - common_packages is truthy - name: Install host-specific packages pacman: name: "{{ host_packages }}" when: - host_packages is defined - host_packages is truthy