From 87d9d8c642eef0360ce88357043d817533375f63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20Grondek?= Date: Wed, 25 Oct 2023 23:32:58 +0200 Subject: [PATCH] Enable multilib --- roles/prepare/tasks/arch.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) 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