aur repo wip

This commit is contained in:
2024-04-23 00:49:49 +12:00
parent 85330c8645
commit a6eb508cf0
17 changed files with 171 additions and 34 deletions

View File

@ -1,24 +1,8 @@
---
- name: Check if Pikaur is installed
when: ansible_facts['os_family'] == "Archlinux"
ansible.builtin.stat:
follow: true
path: /usr/bin/pikaur
register: pikaur_stat
- name: Branch to Pikaur setup role if Pikaur is not installed
when:
- ansible_facts['os_family'] == "Archlinux"
- not pikaur_stat.stat.exists
ansible.builtin.include_role:
name: pikaur
- name: Install arr packages from AUR
- name: Install arr packages
when: ansible_facts['os_family'] == "Archlinux"
community.general.pacman:
executable: pikaur
name: "{{ item }}"
name: "{{ arr_packages }}"
state: present
update_cache: "{{ item == arr_packages.0 }}"
loop: "{{ arr_packages }}"
update_cache: true