35 lines
872 B
YAML
35 lines
872 B
YAML
- name: "Install AUR helper"
|
|
hosts: localhost
|
|
connection: local
|
|
|
|
tasks:
|
|
|
|
- name: Create build user
|
|
ansible.builtin.user:
|
|
name: aur_builder
|
|
group: wheel
|
|
create_home: no
|
|
home: /tmp
|
|
|
|
- name: Install build tools
|
|
ansible.builtin.package:
|
|
name:
|
|
- base-devel
|
|
state: present
|
|
update_cache: True
|
|
|
|
- name: "Gather package facts"
|
|
ansible.builtin.package_facts:
|
|
manager: "auto"
|
|
|
|
- name: Install PIKAUR
|
|
when: "'pikaur' not in ansible_facts['packages']"
|
|
become: yes
|
|
become_user: aur_builder
|
|
ansible.builtin.script: ./lib/installFromAur.sh pikaur
|
|
|
|
- name: Install ansible-aur-git
|
|
when: "'ansible-aur-git' not in ansible_facts['packages']"
|
|
become: yes
|
|
become_user: aur_builder
|
|
ansible.builtin.script: ./lib/installFromAur.sh ansible-aur-git
|