118 lines
2.6 KiB
YAML
118 lines
2.6 KiB
YAML
---
|
|
# tasks file for arch-post-setup
|
|
- name: Ensure yay is installed
|
|
kewlfft.aur.aur:
|
|
name: yay
|
|
|
|
- name: Ensure Choatic AUR Mirror List is in Place
|
|
become: true
|
|
ansible.builtin.shell:
|
|
cmd: >
|
|
yes | pacman-key --recv-key FBA220DFC880C036 --keyserver keyserver.ubuntu.com && yes | pacman-key --lsign-key FBA220DFC880C036 && yes | pacman -U 'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-keyring.pkg.tar.zst' 'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-mirrorlist.pkg.tar.zst'
|
|
creates: /etc/pacman.d/chaotic-mirrorlist
|
|
|
|
- name: Install pacman.conf
|
|
become: true
|
|
ansible.builtin.copy:
|
|
src: pacman.conf
|
|
dest: /etc/pacman.conf
|
|
owner: root
|
|
group: root
|
|
mode: 644
|
|
|
|
- name: Update Pacman Caches
|
|
become: true
|
|
community.general.pacman:
|
|
update_cache: true
|
|
|
|
- name: Install Needed Programs via Pacman
|
|
become: true
|
|
community.general.pacman:
|
|
name:
|
|
- chromium
|
|
- firefox-developer-edition
|
|
- ffmpeg
|
|
- jq
|
|
- inotify-tools
|
|
- wf-recorder
|
|
- mako
|
|
- wl-clipboard
|
|
- udiskie
|
|
- playerctl
|
|
- light
|
|
- wev
|
|
- wofi
|
|
- qbittorrent
|
|
- qt5-wayland
|
|
- qt6-wayland
|
|
- swaybg
|
|
- bind
|
|
- man
|
|
- silicon
|
|
- slurp
|
|
- grim
|
|
- wireshark-qt
|
|
- libva-mesa-driver
|
|
- docker
|
|
- llvm
|
|
- mpv # Video playing from command line
|
|
- fuse2 # appimage support
|
|
# Zathura pdf viewer stuff
|
|
- zathura
|
|
- zathura-pdf-mupdf
|
|
- texlive-most
|
|
- texlive-latexextra
|
|
- texlive-lang
|
|
- texlive-langextra
|
|
- biber
|
|
- texlive-bibtexextra
|
|
- texlive-fontsextra
|
|
# Asus Linux Stuff
|
|
- asusctl
|
|
- supergfxctl
|
|
- linux-g14
|
|
- linux-g14-headers
|
|
state: present
|
|
|
|
- name: Install Needed Programs From AUR
|
|
kewlfft.aur.aur:
|
|
name:
|
|
- hyprland-bin
|
|
- waybar-hyprland
|
|
- kbct-git
|
|
- wezterm-git
|
|
- swaylock-effects-git
|
|
- pw-volume
|
|
- spotify
|
|
- powershell-bin
|
|
state: present
|
|
|
|
- name: Get User
|
|
ansible.builtin.set_fact:
|
|
user: "{{ ansible_env.USER | default('sam') }}"
|
|
changed_when: false
|
|
|
|
- name: Ensure User Groups and Shell Are Set
|
|
become: true
|
|
ansible.builtin.user:
|
|
name: "{{ user }}"
|
|
groups:
|
|
- wheel
|
|
- docker
|
|
- sys
|
|
- log
|
|
shell: /usr/bin/zsh
|
|
state: present
|
|
when: user is defined and not user == 'root'
|
|
|
|
- name: Enable and Start Needed Systemd Services
|
|
become: true
|
|
ansible.builtin.systemd:
|
|
name: "{{ item }}"
|
|
state: started
|
|
enabled: true
|
|
loop:
|
|
- supergfxd
|
|
- power-profiles-daemon.service
|
|
- docker
|