From e6000fc0440defa25c817126ed912faf102f4e40 Mon Sep 17 00:00:00 2001 From: exu Date: Sun, 6 Oct 2024 19:24:37 +0200 Subject: [PATCH] Use block in file instead --- arch-setup/install.yml | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/arch-setup/install.yml b/arch-setup/install.yml index 396293d6..90068b6b 100644 --- a/arch-setup/install.yml +++ b/arch-setup/install.yml @@ -3,16 +3,12 @@ become: yes tasks: - name: Enable multilib repository - ansible.builtin.lineinfile: + ansible.builtin.blockinfile: path: /etc/pacman.conf - search_string: "#[multilib]" - line: "[multilib]" - - - name: Enable multilib repository (2) - ansible.builtin.lineinfile: - path: /etc/pacman.conf - search_string: "#Include = /etc/pacman.d/mirrorlist" - line: Include = /etc/pacman.d/mirrorlist + prepend_newline: true + block: | + [multilib] + Include = /etc/pacman.d/mirrorlist - name: Install official packages community.general.pacman: