mirror of
https://github.com/pigmonkey/spark.git
synced 2026-01-23 02:24:09 +00:00
48 lines
1.1 KiB
YAML
48 lines
1.1 KiB
YAML
---
|
|
- name: Install universal base packages
|
|
pacman:
|
|
name: "{{ base_packages }}"
|
|
state: present
|
|
tags:
|
|
- packages
|
|
|
|
- name: Create pacman hook directory
|
|
file: path=/etc/pacman.d/hooks
|
|
state=directory
|
|
tags:
|
|
- packages
|
|
|
|
- name: Use all cores when compressing packages
|
|
lineinfile:
|
|
dest: /etc/makepkg.conf
|
|
regexp: "^COMPRESSXZ"
|
|
line: "COMPRESSXZ=(xz -c -z - --threads=0)"
|
|
|
|
- name: Install AUR base packages
|
|
kewlfft.aur.aur:
|
|
name: "{{ aur.packages }}"
|
|
become: yes
|
|
become_user: "{{ aur.user }}"
|
|
tags:
|
|
- aur
|
|
- packages
|
|
|
|
- name: Push pacman cache cleanup service
|
|
copy: src=paccache.service dest=/etc/systemd/system/paccache.service
|
|
notify:
|
|
- reload systemd config
|
|
tags:
|
|
- packages
|
|
|
|
- name: Push pacman cache cleanup timer
|
|
copy: src=paccache.timer dest=/etc/systemd/system/paccache.timer
|
|
notify:
|
|
- reload systemd config
|
|
- restart paccache
|
|
tags:
|
|
- packages
|
|
|
|
- name: Enable and start pacman cache cleanup timer
|
|
service: name=paccache.timer enabled=yes state=started
|
|
tags:
|
|
- packages
|