1
0
IaC/ansible/roles/pikaur/tasks/main.yml

51 lines
1.0 KiB
YAML
Raw Permalink Normal View History

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
2022-09-03 09:47:32 -04:00
- pyalpm
- python-docutils
- python-future
- python-commonmark
2022-09-03 08:09:20 -04:00
state: latest
update_cache: true
reason: explicit
- name: clone git repo
2022-09-03 09:47:32 -04:00
become: false
2022-09-03 08:09:20 -04:00
ansible.builtin.git:
repo: 'https://aur.archlinux.org/pikaur.git'
dest: /git/pikaur
depth: 1
single_branch: yes
2022-09-03 09:47:32 -04:00
- name: make pikaur package
become: false
2022-09-03 08:14:01 -04:00
ansible.builtin.shell:
2022-09-03 09:47:32 -04:00
cmd: makepkg
2022-09-03 08:14:01 -04:00
chdir: /git/pikaur/
2022-09-03 09:47:32 -04:00
creates: pikaur-1.11-1-any.pkg.tar.zst
- name: install built pikaur package
become: true
community.general.pacman:
name: /git/pikaur/pikaur-1.11-1-any.pkg.tar.zst
state: present
2022-09-03 08:20:27 -04:00
- name: update AUR cache
2022-09-03 09:47:32 -04:00
become: true
2022-09-03 08:20:27 -04:00
community.general.pacman:
update_cache: yes
executable: pikaur