2024-05-11 11:06:13 +00:00
|
|
|
- name: "[Arch] Update system"
|
|
|
|
become: yes
|
|
|
|
community.general.pacman:
|
|
|
|
update_cache: true
|
|
|
|
upgrade: true
|
|
|
|
|
|
|
|
- name: "[Arch] install jmespath for json_query"
|
2023-08-26 21:57:26 +00:00
|
|
|
become: yes
|
|
|
|
community.general.pacman:
|
|
|
|
name: python-jmespath
|
|
|
|
|
2024-05-11 11:06:13 +00:00
|
|
|
- name: "[Arch] install packages for building"
|
2023-08-26 21:57:26 +00:00
|
|
|
become: yes
|
|
|
|
community.general.pacman:
|
|
|
|
name:
|
|
|
|
- make
|
|
|
|
|
2024-05-11 11:06:13 +00:00
|
|
|
- name: "[Arch] install packages for building"
|
2023-08-26 21:57:26 +00:00
|
|
|
become: yes
|
|
|
|
community.general.pacman:
|
|
|
|
extra_args: --needed
|
|
|
|
name:
|
|
|
|
- git
|
|
|
|
- base-devel
|
|
|
|
- fakeroot
|
|
|
|
|
2024-05-11 11:06:13 +00:00
|
|
|
- name: "[Arch] create arch source dir"
|
2023-08-26 21:57:26 +00:00
|
|
|
file:
|
|
|
|
path: "{{ arch_src_dir }}"
|
|
|
|
state: directory
|
|
|
|
|
2024-05-11 11:06:13 +00:00
|
|
|
- name: "[Arch] checkout yay"
|
2023-08-26 21:57:26 +00:00
|
|
|
git:
|
|
|
|
repo: https://aur.archlinux.org/yay.git
|
|
|
|
dest: "{{ arch_src_dir }}/yay"
|
|
|
|
clone: yes
|
|
|
|
update: yes
|
|
|
|
|
2024-05-11 11:06:13 +00:00
|
|
|
- name: "[Arch] install yay"
|
2023-08-26 21:57:26 +00:00
|
|
|
command:
|
|
|
|
chdir: "{{ arch_src_dir }}/yay"
|
|
|
|
cmd:
|
2024-05-07 23:37:02 +00:00
|
|
|
makepkg -si --needed --noconfirm
|
2023-08-26 21:57:26 +00:00
|
|
|
|
2024-05-11 11:06:13 +00:00
|
|
|
- name: "[Arch] update yay cache"
|
2023-08-26 21:57:26 +00:00
|
|
|
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
|