aboutsummaryrefslogtreecommitdiffstats
path: root/roles/_workstation/yay/tasks/main.yml
blob: 30f67f2d82463d6d8ad44e8fdfd1fd1ae185f959 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
---

- name: clone yay repository
  ansible.builtin.git:
    repo: "{{ yay_repository_url }}"
    dest: "{{ yay_repository_local_dir }}"
    version: origin/master
  become: true
  become_user: "{{ yay_workstation_user }}"

- name: make yay package  # noqa: no-changed-when
  ansible.builtin.command:
    cmd: makepkg -fs
    chdir: "{{ yay_repository_local_dir }}"
  become: true
  become_user: "{{ yay_workstation_user }}"

- name: install yay package  # noqa: no-changed-when
  ansible.builtin.shell:
    cmd: pacman --noconfirm -U *.zst
    chdir: "{{ yay_repository_local_dir }}"
remember that computers suck.