2023-08-26 21:57:26 +00:00
|
|
|
- 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:
|
2023-10-23 22:14:11 +00:00
|
|
|
makepkg -si --needed
|
2023-08-26 21:57:26 +00:00
|
|
|
|
|
|
|
- name: update yay cache
|
|
|
|
shell:
|
|
|
|
cmd: yay -Y --gendb
|
2023-10-25 21:32:58 +00:00
|
|
|
|
|
|
|
|
|
|
|
- name: "add multilib"
|
|
|
|
become: yes
|
|
|
|
lineinfile:
|
|
|
|
dest: "/etc/pacman.conf"
|
|
|
|
state: "present"
|
|
|
|
line: "[multilib]"
|
|
|
|
regexp: "^\\[multilib\\]"
|
|
|
|
insertafter: "^#\\[multilib\\]"
|
|
|
|
|
|
|
|
- name: "add multilib (cont)"
|
|
|
|
become: yes
|
|
|
|
lineinfile:
|
|
|
|
dest: "/etc/pacman.conf"
|
|
|
|
state: "present"
|
|
|
|
line: "Include = /etc/pacman.d/mirrorlist"
|
|
|
|
insertafter: "^\\[multilib\\]"
|
|
|
|
regexp: "Include = /etc/pacman.d/mirrorlist"
|
|
|
|
|
|
|
|
- name: Update cache
|
|
|
|
become: yes
|
|
|
|
community.general.pacman:
|
|
|
|
update_cache: true
|