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

25 lines
673 B
YAML
Raw Normal View History

2023-11-02 19:51:54 +01:00
---
- name: Create and install meta package for Arch Linux
2023-11-02 19:51:54 +01:00
when: arch_based
block:
- name: Generate meta package PKGBUILD
2023-11-02 19:51:54 +01:00
ansible.builtin.template:
src: PKGBUILD.j2
dest: "{{ ansible_user_dir }}/.cache/automatrop/PKGBUILD"
2023-11-02 19:51:54 +01:00
listen: software changed
- name: Install meta package
aur:
2023-11-02 19:51:54 +01:00
name: automatrop-packages-{{ inventory_hostname_short }}
local_pkgbuild: "{{ ansible_user_dir }}/.cache/automatrop"
use: makepkg
state: latest
2023-11-02 19:51:54 +01:00
listen: software changed
when: root_access
2023-11-02 19:51:54 +01:00
- name: Update pacman cache
community.general.pacman:
update_cache: true
become: true
2021-12-02 16:55:55 +01:00
when: arch_based