aboutsummaryrefslogtreecommitdiffstats
path: root/roles/workstation/tasks/yay.yml
blob: 8581bfda4506fea7eba6f7ec4b4517e3d73332f3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
- name: clone yay repository
  ansible.builtin.git:
    repo: "{{ workstation_yay_repo }}"
    dest: "{{ workstation_yay_dir }}"
    version: origin/master
  become: true
  become_user: "{{ workstation_user }}"

- name: make yay package  # noqa: no-changed-when
  # possible ambiguous replacement: command : ansible.builtin.command | community.ciscosmb.command | community.routeros.command
  ansible.builtin.command:
    cmd: makepkg -fs
    chdir: "{{ workstation_yay_dir }}"
  become: true
  become_user: "{{ workstation_user }}"

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