Use block in file instead
This commit is contained in:
parent
78b597e894
commit
e6000fc044
@ -3,16 +3,12 @@
|
|||||||
become: yes
|
become: yes
|
||||||
tasks:
|
tasks:
|
||||||
- name: Enable multilib repository
|
- name: Enable multilib repository
|
||||||
ansible.builtin.lineinfile:
|
ansible.builtin.blockinfile:
|
||||||
path: /etc/pacman.conf
|
path: /etc/pacman.conf
|
||||||
search_string: "#[multilib]"
|
prepend_newline: true
|
||||||
line: "[multilib]"
|
block: |
|
||||||
|
[multilib]
|
||||||
- name: Enable multilib repository (2)
|
Include = /etc/pacman.d/mirrorlist
|
||||||
ansible.builtin.lineinfile:
|
|
||||||
path: /etc/pacman.conf
|
|
||||||
search_string: "#Include = /etc/pacman.d/mirrorlist"
|
|
||||||
line: Include = /etc/pacman.d/mirrorlist
|
|
||||||
|
|
||||||
- name: Install official packages
|
- name: Install official packages
|
||||||
community.general.pacman:
|
community.general.pacman:
|
||||||
|
Loading…
Reference in New Issue
Block a user