blob: 87f4cab70656487d5584018345aad023564a5623 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
- name: Configure misc pacman repository
ansible.builtin.copy:
src: files/misc
dest: /etc/pacman.d
owner: root
group: root
mode: u+rw,g+r,o+r
- name: Add misc repository to pacman.conf
ansible.builtin.lineinfile:
dest: /etc/pacman.conf
state: present
regexp: "{{ item.regexp }}"
line: "{{ item.line }}"
owner: root
group: root
mode: u+rw,g+r,o+r
notify:
- Update packages db
loop:
- regexp: '^[misc]'
line: '[misc]'
- regexp: '^Include = /etc/pacman.d/misc'
line: 'Include = /etc/pacman.d/misc'
# Usually, handlers run after all tasks are completed, but it doesn't work for
# this case, because we are going to install package from misc repository, so
# we need to have package db up to date.
- name: Force packages db update
ansible.builtin.meta: flush_handlers
|