feat(role): Initial commit
This commit is contained in:
22
tasks/archlinux-package-management.yml
Normal file
22
tasks/archlinux-package-management.yml
Normal file
@@ -0,0 +1,22 @@
|
||||
# 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'
|
||||
Reference in New Issue
Block a user