Make sure pacman database exists on install
This commit is contained in:
10
playbook.yml
10
playbook.yml
@@ -42,8 +42,13 @@
|
|||||||
[multilib]
|
[multilib]
|
||||||
Include = /etc/pacman.d/mirrorlist
|
Include = /etc/pacman.d/mirrorlist
|
||||||
marker: "# {mark} ANSIBLE MANAGED multilib"
|
marker: "# {mark} ANSIBLE MANAGED multilib"
|
||||||
|
notify:
|
||||||
|
- refresh package lists
|
||||||
become: true
|
become: true
|
||||||
|
|
||||||
|
- name: Make sure that package lists are refreshed if necessary
|
||||||
|
ansible.builtin.meta: flush_handlers
|
||||||
|
|
||||||
- name: Enable parallel download
|
- name: Enable parallel download
|
||||||
ansible.builtin.blockinfile:
|
ansible.builtin.blockinfile:
|
||||||
path: /etc/pacman.conf
|
path: /etc/pacman.conf
|
||||||
@@ -812,6 +817,11 @@
|
|||||||
- always
|
- always
|
||||||
|
|
||||||
handlers:
|
handlers:
|
||||||
|
- name: refresh package lists
|
||||||
|
community.general.pacman:
|
||||||
|
update_cache: true
|
||||||
|
become: true
|
||||||
|
|
||||||
- name: rebuild initrd
|
- name: rebuild initrd
|
||||||
command: mkinitcpio -P
|
command: mkinitcpio -P
|
||||||
become: true
|
become: true
|
||||||
|
|||||||
Reference in New Issue
Block a user