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

200 lines
4.3 KiB
YAML
Raw Normal View History

---
# tasks file for arch-post-setup
- name: Ensure yay is installed
kewlfft.aur.aur:
name: yay
- 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-06-01 14:31:41 -05:00
# Pacman goodies, importantly checkupdates used in waybar
- pacman-contrib
# Driver support for Intel GPUs for vulkan
- vulkan-intel
2023-05-13 07:16:58 -05:00
# Access linux machine from phones
2023-02-15 15:44:31 -06:00
- chromium
2023-07-04 15:18:33 -05:00
- github-cli
2022-10-17 02:33:48 -05:00
- firefox-developer-edition
2023-07-23 16:51:50 -05:00
- thunderbird
- ffmpeg
- jq
- inotify-tools
- wf-recorder
- mako
- wl-clipboard
- udiskie
- playerctl
- wofi
2022-10-16 23:55:31 -05:00
- qbittorrent
- qt5-wayland
- qt6-wayland
2022-11-01 17:26:35 -05:00
- bind
2022-11-01 17:48:23 -05:00
- man
2023-08-28 23:02:30 -05:00
- pavucontrol-qt
2023-07-23 20:11:22 -05:00
- sddm
- 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-07-23 23:04:28 -05:00
- intel-media-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-08-26 04:03:36 -05:00
- yarn
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-08-28 17:15:05 -05:00
- python-pip
2023-03-04 02:35:25 -06:00
- timeshift
- power-profiles-daemon
2023-04-11 12:40:54 -05:00
- polkit-kde-agent # Allows apps to elevate themselves by prompting for password, e.g. timeshift
- cronie
- qt6ct
2023-08-17 23:43:35 -05:00
- qt5ct
- gtk-engine-murrine
- waybar # Top status bar in DE
2023-02-26 19:49:04 -06:00
- mpv # Video playing from command line
- fuse2 # appimage support
2023-08-11 00:01:27 -05:00
# Opensnitch and dependencies
- opensnitch
- python-qt-material
- python-pyasn
# Ansible at the system level
- ansible
- ansible-lint
# Dell audio driver support
- sof-firmware
- alsa-ucm-conf
2023-07-09 14:31:08 -05:00
# Fonts
- noto-fonts
- noto-fonts-cjk
- noto-fonts-emoji
- ttf-firacode-nerd
- ttf-liberation
- ttf-roboto
- ttf-opensans
2023-07-10 10:30:16 -05:00
- ttf-meslo-nerd
# Terminals
- kitty
# Zathura pdf viewer stuff
- zathura
- zathura-pdf-mupdf
- texlive-latexextra
- texlive-lang
- texlive-langextra
- biber
- texlive-bibtexextra
- texlive-fontsextra
# Virtual Machines
- qemu-full
- virt-manager
- dnsmasq
2023-03-07 15:30:37 -06:00
- dmidecode
# Command completion for bash & zsh
- bash-completion
- zsh-completions
state: present
2022-10-17 02:33:48 -05:00
- name: Install Needed Programs From AUR
kewlfft.aur.aur:
name:
2023-08-09 10:59:27 -05:00
- hyprland-git
2023-03-08 21:37:29 -06:00
- xdg-desktop-portal-hyprland-git
# Allows vpn to work while opensnitch is running
- opensnitch-ebpf-module
- swww
- qt5-styleplugins
- qt6gtk2
2022-10-17 02:33:48 -05:00
- swaylock-effects-git
- wev
2022-10-17 02:33:48 -05:00
- pw-volume
- wezterm-git
- spotify
2023-02-15 15:17:30 -06:00
- powershell-bin
- xwaylandvideobridge-cursor-mode-2-git
2023-07-23 19:56:13 -05:00
- clight-git
- clight-gui-git
2023-08-10 23:40:14 -05:00
- kanagawa-gtk-theme-git
- ttf-twemoji
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:
- power-profiles-daemon.service
- docker.service
- libvirtd.service
- virtlogd.service
2023-08-11 00:01:27 -05:00
- opensnitchd.service
- cronie.service
- man-db.timer
- polkit.service
2023-07-23 20:11:22 -05:00
- sddm.service
2023-07-23 19:56:13 -05:00
- clightd.service
- name: Enable and Start Needed Systemd User Services
environment:
XDG_RUNTIME_DIR: "/run/user/{{ ansible_user_gid }}"
ansible.builtin.systemd:
name: "{{ item }}"
scope: user
state: started
enabled: true
loop:
- polkit.service
- name: Import Other Arch Tasks
ansible.builtin.include_tasks:
file: '{{ task }}'
loop_control:
loop_var: task
loop:
- reflector.yml
- bluetooth.yml
- disable-gpu.yml
2023-08-06 14:03:39 -05:00
- dns.yml
2023-08-19 03:26:05 -05:00
- powertop.yml
- pacman-hooks.yml