--- - name: include per-os vars ansible.builtin.include_vars: file: "os_{{ ansible_distribution | lower }}.yml" - name: install man-db ansible.builtin.shell: yes | pacman -S man-db when: ansible_distribution in ["Archlinux"] - name: install distribution packages ansible.builtin.package: name: "{{ item }}" state: present loop: - "{{ basetools_common_packages }}" - "{{ basetools_distribution_packages }}" - name: install mandoc ansible.builtin.shell: yes | pacman -S mandoc when: ansible_distribution in ["Archlinux"] - name: install community package ansible.builtin.include_role: name: _workstation/makepkg vars: makepkg_package_name: "{{ item }}" loop: "{{ basetools_makepkg_packages }}" when: ansible_distribution in ["Archlinux"]