From 1c2484b43001e1ca45bf30eb37e7513a829391a4 Mon Sep 17 00:00:00 2001 From: Bertrand Benjamin Date: Sat, 25 Aug 2018 09:31:10 +0200 Subject: [PATCH] try imported version --- tasks/wine.yml | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/tasks/wine.yml b/tasks/wine.yml index 38f9466..f1ce3c9 100644 --- a/tasks/wine.yml +++ b/tasks/wine.yml @@ -1,10 +1,19 @@ --- -- name: Activate Multilib +- name: "add multilib" lineinfile: - dest: /etc/pacman.conf - regexp: '^#[multilib]\n#Include = /etc/pacman.d/mirrorlist' - line: 'multilib\nInclude = /etc/pacman.d/mirrorlist' - backrefs: yes + dest: "/etc/pacman.conf" + state: "present" + line: "[multilib]" + regexp: "^\\[multilib\\]" + insertafter: "^#\\[multilib\\]" + +- name: "add multilib (cont)" + lineinfile: + dest: "/etc/pacman.conf" + state: "present" + line: "Include = /etc/pacman.d/mirrorlist" + insertafter: "^\\[multilib\\]" + regexp: "Include = /etc/pacman.d/mirrorlist" - name: Update pacman cache pacman: