dotfiles/config/automatrop/roles/software/handlers/main.yml

25 lines
673 B
YAML

---
- name: Create and install meta package for Arch Linux
when: arch_based
block:
- name: Generate meta package PKGBUILD
ansible.builtin.template:
src: PKGBUILD.j2
dest: "{{ ansible_user_dir }}/.cache/automatrop/PKGBUILD"
listen: software changed
- name: Install meta package
aur:
name: automatrop-packages-{{ inventory_hostname_short }}
local_pkgbuild: "{{ ansible_user_dir }}/.cache/automatrop"
use: makepkg
state: latest
listen: software changed
when: root_access
- name: Update pacman cache
community.general.pacman:
update_cache: true
become: true
when: arch_based