1
0
mirror of https://git.decapod.one/brethil/dotfiles synced 2024-11-18 17:51:31 +01:00
dotfiles/ansible/playbooks/yay.yaml

Failed to ignore revisions in .git-blame-ignore-revs.

50 lines
1.0 KiB
YAML
Raw Normal View History

2022-02-04 15:48:42 +01:00
---
- hosts: all
tasks:
- name: Build directory
shell:
cmd: mkdir /home/build
creates: /home/build
register: build_dir
- name: Prepare build dir
shell: |
chgrp nobody /home/build
chmod g+ws /home/build
when:
- build_dir is defined
- name: yay repo
become: yes
become_method: sudo
become_user: nobody
git:
repo: https://aur.archlinux.org/yay.git
dest: /home/build/yay
version: master
register: repo
- name: Install go (yay dependency)
community.general.pacman:
name:
- go
state: present
- name: build
become: yes
become_method: sudo
become_user: nobody
shell: |
cd /home/build/yay
makepkg
environment:
- GOCACHE: /home/build
- ANSIBLE_REMOTE_TMP: /home/build
- name: Install yay
community.general.pacman:
name:
2023-12-20 12:33:27 +01:00
- /home/build/yay/yay-*.tar.zst
2022-02-04 15:48:42 +01:00
state: present