Update arch system in prepare

This commit is contained in:
Przemek Grondek 2024-05-11 13:06:13 +02:00
parent 4c59b1592a
commit 00cde385ad

View File

@ -1,15 +1,21 @@
- name: install jmespath for json_query
- name: "[Arch] Update system"
become: yes
community.general.pacman:
update_cache: true
upgrade: true
- name: "[Arch] install jmespath for json_query"
become: yes
community.general.pacman:
name: python-jmespath
- name: install packages for building
- name: "[Arch] install packages for building"
become: yes
community.general.pacman:
name:
- make
- name: install packages for building
- name: "[Arch] install packages for building"
become: yes
community.general.pacman:
extra_args: --needed
@ -18,29 +24,28 @@
- base-devel
- fakeroot
- name: create arch source dir
- name: "[Arch] create arch source dir"
file:
path: "{{ arch_src_dir }}"
state: directory
- name: checkout yay
- name: "[Arch] checkout yay"
git:
repo: https://aur.archlinux.org/yay.git
dest: "{{ arch_src_dir }}/yay"
clone: yes
update: yes
- name: install yay
- name: "[Arch] install yay"
command:
chdir: "{{ arch_src_dir }}/yay"
cmd:
makepkg -si --needed --noconfirm
- name: update yay cache
- name: "[Arch] update yay cache"
shell:
cmd: yay -Y --gendb
- name: "add multilib"
become: yes
lineinfile: