Simplest way to install package using yaourt is to use it in command. This simplistic method works only when it's ok to expect builder to have yaourt already installed. Just run the installation command, but add "noconfirm" for skipping the yes/no questions and "needed" to not re-install packages when already installed.
Source code viewer
- - name: Install PACKAGE
- command: yaourt -S PACKAGE --noconfirm --neededProgramming Language: YAML