--- - name: Clone yay git: repo: https://aur.archlinux.org/yay-bin.git dest: "{{ srcdir }}/yay" update: true - name: Build and install yay command: chdir: "{{ srcdir }}/yay" cmd: "makepkg -sfi --noconfirm" creates: /usr/bin/yay-- - name: Install yay packages community.general.pacman: name: "{{ item }}" state: present executable: yay loop: "{{ yay_packages }}"