role-service-generic_vm/tasks/archlinux-package-management.yml

23 lines
823 B
YAML
Raw Normal View History

2025-04-03 00:12:58 +02:00
# SPDX-License-Identifier: MIT
- name: 'If Arch Linux set paru package manager to list search results bottom-up'
when: 'ansible_facts[''os_family''] | lower == ''archlinux'''
community.general.ini_file:
path: '/etc/paru.conf'
section: 'options'
option: 'BottomUp'
allow_no_value: true
- name: 'If Arch Linux copy pacman config file with custom options'
when: 'ansible_facts[''os_family''] | lower == ''archlinux'''
ansible.builtin.copy:
src: 'etc/pacman.d/pacman.conf'
dest: '/etc/pacman.d/pacman.conf'
- name: 'If Arch Linux include our custom pacman config in main pacman config'
when: 'ansible_facts[''os_family''] | lower == ''archlinux'''
community.general.ini_file:
path: '/etc/pacman.conf'
section: 'options'
option: 'Include'
value: '/etc/pacman.d/pacman.conf'