dotfiles/playbooks/roles/arch/tasks/main.yml
Anthony Cicchetti 0970a601af We back to skim
2020-10-19 10:17:13 -04:00

102 lines
1.7 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
- fzf
- rsync
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
user:
name: aur_builder
group: wheel
- name: aur_builder can run pacman without sudo
when:
- dev_machine == true
lineinfile:
path: /etc/sudoers.d/11-install-aur_builder
line: 'aur_builder ALL=(ALL) NOPASSWD: /usr/bin/pacman'
create: yes
validate: 'visudo -cf %s'
- name: Create yay tmp directory
when:
- dev_machine == true
file:
dest: /tmp/yay
state: directory
mode: '0755'
owner: aur_builder
group: wheel
- name: clone yay from github
when:
- dev_machine == true
become: true
become_user: aur_builder
git:
repo: https://aur.archlinux.org/yay.git
dest: /tmp/yay
version: master
update: yes
# notify: makepkg -si
- name: Makepkg yay
when:
- dev_machine == true
become: yes
become_user: aur_builder
command: makepkg --noconfirm -si
args:
chdir: /tmp/yay
creates: /usr/bin/yay
- include_tasks: neovim-nightly.yml