24 lines
639 B
YAML
24 lines
639 B
YAML
- name: Create and install meta package for Arch Linux
|
|
block:
|
|
- name: Generate meta package PKGBUILD
|
|
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
|
|
when: arch_based
|
|
|
|
- name: update pacman cache
|
|
pacman:
|
|
update_cache: yes
|
|
become: yes
|
|
when: arch_based
|