dotfiles/playbooks/roles/arch/tasks/main.yml
2023-01-21 13:56:31 -05:00

74 lines
1.2 KiB
YAML

---
- name: Update Packages
become: yes
become_method: sudo
pacman:
update_cache: yes
upgrade: yes
- name: Install basics
become: yes
become_method: sudo
pacman:
name:
- zsh
- git
- cmake
- tmux
- gnupg
- rsync
- emacs-nativecomp
state: latest
- name: Install skim
become: yes
become_method: sudo
when:
- rust_extras == false
pacman:
name:
- skim
state: latest
- name: Install packaged neovim
become: yes
become_method: sudo
when:
- dev_machine != true
pacman:
name:
- neovim
state: latest
- name: Install Development Tools
when:
- dev_machine == true
become: yes
become_method: sudo
pacman:
name:
- base-devel
- openssl
state: latest
- name: Create aur_builder user
when:
- dev_machine == true
become: yes
become_method: sudo
user:
name: aur_builder
group: wheel
- name: aur_builder can run pacman without sudo
when:
- dev_machine == true
become: yes
become_method: sudo
lineinfile:
path: /etc/sudoers.d/11-install-aur_builder
line: 'aur_builder ALL=(ALL) NOPASSWD: /usr/bin/pacman'
create: yes
validate: 'visudo -cf %s'
- include_tasks: aur.yml