diff --git a/roles/prepare/tasks/arch.yml b/roles/prepare/tasks/arch.yml index 8f16240..474c0ac 100644 --- a/roles/prepare/tasks/arch.yml +++ b/roles/prepare/tasks/arch.yml @@ -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: