✨ feat(ansible): add multilib repo to arch system tasks
This commit is contained in:
parent
9e497909f0
commit
83d88b942b
2 changed files with 12 additions and 0 deletions
3
.config/ansible/roles/arch/system/handlers/main.yml
Normal file
3
.config/ansible/roles/arch/system/handlers/main.yml
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
- name: update_repos
|
||||||
|
pacman:
|
||||||
|
update_cache: yes
|
|
@ -58,6 +58,15 @@
|
||||||
regexp: '#MAKEFLAGS="-j2"'
|
regexp: '#MAKEFLAGS="-j2"'
|
||||||
line: 'MAKEFLAGS="-j$(nproc)"'
|
line: 'MAKEFLAGS="-j$(nproc)"'
|
||||||
|
|
||||||
|
- name: add multilib repo
|
||||||
|
become: true
|
||||||
|
ini_file:
|
||||||
|
path: /etc/pacman.conf
|
||||||
|
section: "multilib"
|
||||||
|
option: "Include"
|
||||||
|
value: "/etc/pacman.d/mirrorlist"
|
||||||
|
notify: update_repos
|
||||||
|
|
||||||
- name: Create hooks directory
|
- name: Create hooks directory
|
||||||
become: true
|
become: true
|
||||||
file:
|
file:
|
||||||
|
|
Loading…
Add table
Reference in a new issue