dotfiles/tasks/packages.yml
Jake Howard 94d483e7b7
Stop manually skipping packages
It's now a bit faster, and I can live with it. This is also much simpler now!
2020-06-15 12:33:03 +01:00

73 lines
1.4 KiB
YAML

- name: Install pacman config
template:
src: ./files/pacman.conf
dest: /etc/pacman.conf
mode: 0644
- name: Create aur_builder user
user:
name: aur_builder
group: wheel
password_lock: true
shell: /usr/bin/nologin
- name: Allow aur_builder user to run pacman as root
lineinfile:
path: /etc/sudoers.d/11-install-aur_builder
line: "aur_builder ALL=(ALL) NOPASSWD: /usr/bin/pacman"
create: true
validate: visudo -cf %s
- name: Install yay
aur:
name: yay
become: true
become_user: aur_builder
- name: Install additional repo keyrings
aur:
name: "{{ item }}"
become: true
become_user: aur_builder
loop:
- archstrike-keyring
- name: Install ccache
aur:
name: ccache
become: true
become_user: aur_builder
- name: Install makepkg tools
aur:
name: "{{ item }}"
become: true
become_user: aur_builder
loop:
- pbzip2
- zstd
- name: Install makepkg config
template:
src: ./files/makepkg.conf
dest: /etc/makepkg.conf
mode: 0644
- name: Install Reflector
aur:
name: reflector
become: true
become_user: aur_builder
- name: Install Reflector service
template:
src: ./files/reflector.service
dest: /etc/systemd/system/reflector.service
mode: 0644
owner: root
group: root
- name: Enable Reflector services
systemd:
name: reflector
enabled: true