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