Dot_Files/roles/arch-post-setup/tasks/main.yml

151 lines
3.3 KiB
YAML
Raw Normal View History

---
# tasks file for arch-post-setup
- name: Ensure yay is installed
kewlfft.aur.aur:
name: yay
2022-10-17 02:33:48 -05:00
- name: Ensure Choatic AUR Mirror List is in Place
become: true
ansible.builtin.shell:
cmd: >
2023-04-02 22:12:02 -05:00
set -o pipefail; 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'
2022-10-17 02:33:48 -05:00
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
2023-04-02 22:12:02 -05:00
mode: "0644"
- name: Update Pacman Caches
become: true
community.general.pacman:
update_cache: true
- name: Install Needed Programs via Pacman
become: true
community.general.pacman:
name:
2023-05-03 16:10:18 -05:00
# Driver support for AMD GPUs for vulkan
- vulkan-radeon
2023-02-15 15:44:31 -06:00
- chromium
2022-10-17 02:33:48 -05:00
- firefox-developer-edition
- ffmpeg
- jq
- inotify-tools
- wf-recorder
- mako
- wl-clipboard
- udiskie
- playerctl
- light
- wev
- wofi
2022-10-16 23:55:31 -05:00
- qbittorrent
- qt5-wayland
- qt6-wayland
2022-10-17 02:33:48 -05:00
- swaybg
2022-11-01 17:26:35 -05:00
- bind
2022-11-01 17:48:23 -05:00
- man
- silicon
2023-01-11 09:44:40 -06:00
- slurp
2023-03-05 02:31:42 -06:00
- gifski
2023-01-11 09:44:40 -06:00
- grim
- wireshark-qt
- libva-mesa-driver
2023-01-26 00:41:03 -06:00
- docker
- docker-compose
2023-02-27 17:24:25 -06:00
- docker-buildx
2023-02-26 22:03:19 -06:00
- llvm
2023-05-01 03:08:20 -05:00
- musl
2023-02-26 22:04:00 -06:00
- clang
- bat
2023-02-27 19:38:18 -06:00
- ccache
2023-03-04 02:35:25 -06:00
- timeshift
2023-03-08 21:37:29 -06:00
- xdg-desktop-portal
2023-04-11 12:40:54 -05:00
- polkit-kde-agent # Allows apps to elevate themselves by prompting for password, e.g. timeshift
- cronie
2023-02-26 19:49:04 -06:00
- mpv # Video playing from command line
- fuse2 # appimage support
# Terminals
- kitty
# 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
# Virtual Machines
- qemu-full
- virt-manager
- dnsmasq
2023-03-07 15:30:37 -06:00
- dmidecode
state: present
2022-10-17 02:33:48 -05:00
- name: Install Needed Programs From AUR
kewlfft.aur.aur:
name:
- hyprland-bin
2023-03-08 21:37:29 -06:00
- xdg-desktop-portal-hyprland-git
- waybar-hyprland
2022-10-17 02:33:48 -05:00
- kbct-git
- swaylock-effects-git
- pw-volume
- wezterm-git
- spotify
2023-02-15 15:17:30 -06:00
- powershell-bin
2022-10-17 02:33:48 -05:00
state: present
2023-01-26 00:41:03 -06:00
- 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
- libvirt
2023-01-26 00:41:03 -06:00
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
2023-01-26 00:41:03 -06:00
- docker
- libvirtd
- cronie
- pcscd
- name: Add Mandb Cronjob
ansible.builtin.cron:
name: "Ensure Man database is built"
minute: "0"
user: "{{ user }}"
job: /usr/bin/mandb
state: present