2022-09-03 08:09:20 -04:00
|
|
|
---
|
|
|
|
- name: create git parent dir
|
|
|
|
become: true
|
|
|
|
ansible.builtin.file:
|
|
|
|
path: /git
|
|
|
|
state: directory
|
|
|
|
owner: "{{ ansible_user }}"
|
|
|
|
group: "{{ ansible_user }}"
|
|
|
|
mode: 0775
|
|
|
|
|
|
|
|
- name: install pikaur prereqs
|
|
|
|
become: true
|
|
|
|
community.general.pacman:
|
|
|
|
name:
|
|
|
|
- base-devel
|
|
|
|
- git
|
|
|
|
state: latest
|
|
|
|
update_cache: true
|
|
|
|
reason: explicit
|
|
|
|
|
|
|
|
- name: clone git repo
|
|
|
|
ansible.builtin.git:
|
|
|
|
repo: 'https://aur.archlinux.org/pikaur.git'
|
|
|
|
dest: /git/pikaur
|
|
|
|
depth: 1
|
|
|
|
single_branch: yes
|
|
|
|
|
2022-09-03 08:14:01 -04:00
|
|
|
- name: make/install pikaur
|
|
|
|
ansible.builtin.shell:
|
|
|
|
cmd: makepkg -fsri
|
|
|
|
chdir: /git/pikaur/
|