diff --git a/roles/prepare/tasks/arch.yml b/roles/prepare/tasks/arch.yml index ad58614..66cb318 100644 --- a/roles/prepare/tasks/arch.yml +++ b/roles/prepare/tasks/arch.yml @@ -39,3 +39,27 @@ - name: update yay cache shell: cmd: yay -Y --gendb + + +- 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