2023-11-02 19:51:54 +01:00
|
|
|
---
|
2021-06-12 17:15:21 +02:00
|
|
|
- name: Create and install meta package for Arch Linux
|
2023-11-02 19:51:54 +01:00
|
|
|
when: arch_based
|
|
|
|
|
2021-06-12 17:15:21 +02:00
|
|
|
block:
|
|
|
|
- name: Generate meta package PKGBUILD
|
2023-11-02 19:51:54 +01:00
|
|
|
ansible.builtin.template:
|
2021-06-12 17:15:21 +02:00
|
|
|
src: PKGBUILD.j2
|
|
|
|
dest: "{{ ansible_user_dir }}/.cache/automatrop/PKGBUILD"
|
2023-11-02 19:51:54 +01:00
|
|
|
listen: software changed
|
2021-06-12 17:15:21 +02:00
|
|
|
|
|
|
|
- name: Install meta package
|
|
|
|
aur:
|
2023-11-02 19:51:54 +01:00
|
|
|
name: automatrop-packages-{{ inventory_hostname_short }}
|
2021-06-12 17:15:21 +02:00
|
|
|
local_pkgbuild: "{{ ansible_user_dir }}/.cache/automatrop"
|
|
|
|
use: makepkg
|
|
|
|
state: latest
|
2023-11-02 19:51:54 +01:00
|
|
|
listen: software changed
|
2021-06-13 14:45:20 +02:00
|
|
|
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
|