1
0
Fork 0
dotfiles2000/system/arch/workstation_aur.yaml

36 lines
872 B
YAML
Raw Normal View History

2024-11-05 21:05:54 +01:00
- name: "Install AUR helper"
2024-10-31 22:09:39 +01:00
hosts: localhost
connection: local
tasks:
- name: Create build user
2024-11-05 21:05:54 +01:00
ansible.builtin.user:
2024-10-31 22:09:39 +01:00
name: aur_builder
group: wheel
create_home: no
home: /tmp
- name: Install build tools
2024-11-05 21:05:54 +01:00
ansible.builtin.package:
2024-10-31 22:09:39 +01:00
name:
- base-devel
state: present
update_cache: True
- name: "Gather package facts"
2024-11-05 21:05:54 +01:00
ansible.builtin.package_facts:
2024-10-31 22:09:39 +01:00
manager: "auto"
- name: Install PIKAUR
when: "'pikaur' not in ansible_facts['packages']"
become: yes
become_user: aur_builder
2024-11-05 21:05:54 +01:00
ansible.builtin.script: ./lib/installFromAur.sh pikaur
2024-10-31 22:09:39 +01:00
- name: Install ansible-aur-git
when: "'ansible-aur-git' not in ansible_facts['packages']"
become: yes
become_user: aur_builder
2024-11-05 21:05:54 +01:00
ansible.builtin.script: ./lib/installFromAur.sh ansible-aur-git