ansible-desktop/roles/prepare/tasks/arch.yml

42 lines
770 B
YAML

- name: install jmespath for json_query
become: yes
community.general.pacman:
name: python-jmespath
- name: install packages for building
become: yes
community.general.pacman:
name:
- make
- name: install packages for building
become: yes
community.general.pacman:
extra_args: --needed
name:
- git
- base-devel
- fakeroot
- name: create arch source dir
file:
path: "{{ arch_src_dir }}"
state: directory
- name: checkout yay
git:
repo: https://aur.archlinux.org/yay.git
dest: "{{ arch_src_dir }}/yay"
clone: yes
update: yes
- name: install yay
command:
chdir: "{{ arch_src_dir }}/yay"
cmd:
makepkg -si --needed
- name: update yay cache
shell:
cmd: yay -Y --gendb