--- # The home-server project produces a multi-purpose setup using Ansible. # Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # mandatory parameters: # - pkg_names (json-encoded list) # - aur_user - name: AUR → base-devel needed while building become: false command: | pacman -S --noconfirm --noprogressbar --asdeps --needed base-devel changed_when: false - name: AUR → proceed with installation block: - name: AUR → installation include_tasks: install.yml vars: pkg_name: "{{(item is mapping) | ternary(item.pkg, item)}}" pre_cmd: "{{(item is mapping) | ternary(item.pre, '')}}" with_items: "{{packages}}" always: - name: AUR → remove base-devel and dependencies shell: | pacman -Rns --noconfirm --noprogressbar $(pacman -Qtdqg base-devel) || true changed_when: false