Begin adding yay as a package manager so that themes^Can be installed seamlessly.
This commit is contained in:
@@ -14,6 +14,7 @@
|
|||||||
lightdm: lightdm
|
lightdm: lightdm
|
||||||
sddm: sddm
|
sddm: sddm
|
||||||
tmux: tmux
|
tmux: tmux
|
||||||
|
base_devel: htop # Placeholder for Arch package.
|
||||||
|
|
||||||
- name: General | Facts | Package | Parrot OS Fixes
|
- name: General | Facts | Package | Parrot OS Fixes
|
||||||
set_fact:
|
set_fact:
|
||||||
@@ -42,6 +43,7 @@
|
|||||||
cron: cronie
|
cron: cronie
|
||||||
encfs: encfs
|
encfs: encfs
|
||||||
dig: bind
|
dig: bind
|
||||||
|
base_devel: base-devel
|
||||||
when: ansible_pkg_mgr == "pacman"
|
when: ansible_pkg_mgr == "pacman"
|
||||||
|
|
||||||
- name: General | Facts | Package | FreeBSD
|
- name: General | Facts | Package | FreeBSD
|
||||||
|
|||||||
@@ -88,6 +88,8 @@
|
|||||||
- include_tasks: tasks/general/software/sendmail.yml
|
- include_tasks: tasks/general/software/sendmail.yml
|
||||||
when: ansible_system == "FreeBSD"
|
when: ansible_system == "FreeBSD"
|
||||||
|
|
||||||
|
- include_tasks: tasks/general/software/aur.yml
|
||||||
|
|
||||||
# Gather again in case missing programs have now been installed.
|
# Gather again in case missing programs have now been installed.
|
||||||
- include_tasks: facts/general/gather.yml
|
- include_tasks: facts/general/gather.yml
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,50 @@
|
|||||||
|
---
|
||||||
|
# 20260731 - Hyperling
|
||||||
|
# Install the AUR on pacman-related distros.
|
||||||
|
|
||||||
|
- name: General | Software | AUR | Facts 01
|
||||||
|
set_fact:
|
||||||
|
aur_user: aur-user
|
||||||
|
aur_build_dir: ~/src
|
||||||
|
aur_helper: yay
|
||||||
|
aur_helper_url: https://aur.archlinux.org/yay-bin.git
|
||||||
|
|
||||||
|
- name: General | Software | AUR | Facts 02
|
||||||
|
set_fact:
|
||||||
|
aur_helper_dir: "{{ aur_build_dir }}/{{ aur_helper }}"
|
||||||
|
|
||||||
|
- name: General | Software | AUR | User
|
||||||
|
user:
|
||||||
|
name: "{{ aur_user }}"
|
||||||
|
groups: wheel
|
||||||
|
create_home: true
|
||||||
|
|
||||||
|
- name: General | Software | AUR | Sudoers
|
||||||
|
lineinfile:
|
||||||
|
path: /etc/sudoers.d/aurbuilder
|
||||||
|
line: "{{ aur_user }} ALL=(ALL) NOPASSWD: /usr/bin/pacman"
|
||||||
|
create: true
|
||||||
|
mode: '0440'
|
||||||
|
validate: 'visudo -cf %s'
|
||||||
|
|
||||||
|
- name: General | Software | AUR | Check
|
||||||
|
command: "which {{ aur_helper }}"
|
||||||
|
register: yay_check
|
||||||
|
changed_when: false
|
||||||
|
failed_when: false
|
||||||
|
|
||||||
|
- name: General | Software | AUR | Install
|
||||||
|
block:
|
||||||
|
|
||||||
|
- name: General | Software | AUR | Install | Clone Repo
|
||||||
|
git:
|
||||||
|
repo: "{{ aur_helper_url }}"
|
||||||
|
dest: "{{ aur_helper_dir }}"
|
||||||
|
|
||||||
|
- name: General | Software | AUR | Install | Build & Integrate
|
||||||
|
command: "cd {{ aur_helper_dir }} && makepkg -si --noconfirm"
|
||||||
|
changed_when: true
|
||||||
|
|
||||||
|
when: yay_check.rc != 0
|
||||||
|
become_user: "{{ aur_user }}"
|
||||||
|
|
||||||
@@ -61,6 +61,7 @@
|
|||||||
- "{{ ntp_server }}"
|
- "{{ ntp_server }}"
|
||||||
- "{{ dig }}"
|
- "{{ dig }}"
|
||||||
- "{{ tmux }}"
|
- "{{ tmux }}"
|
||||||
|
- "{{ base_devel }}"
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: General | Software | Packages | Install Software (DEV)
|
- name: General | Software | Packages | Install Software (DEV)
|
||||||
@@ -92,13 +93,13 @@
|
|||||||
when: ansible_distribution == "Debian"
|
when: ansible_distribution == "Debian"
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
|
|
||||||
- name: General | Software | Services | Install killall (Looking at you, Debian)
|
- name: General | Software | Packages | Install killall (Looking at you, Debian)
|
||||||
package:
|
package:
|
||||||
name: psmisc
|
name: psmisc
|
||||||
state: present
|
state: present
|
||||||
when: ansible_distribution == "Debian"
|
when: ansible_distribution == "Debian"
|
||||||
|
|
||||||
- name: General | Software | Services | Install "Bloat" (Looking at you, Arch Base)
|
- name: General | Software | Packages | Install "Bloat" (Looking at you, Arch Base)
|
||||||
package:
|
package:
|
||||||
name:
|
name:
|
||||||
- which
|
- which
|
||||||
@@ -106,7 +107,7 @@
|
|||||||
state: present
|
state: present
|
||||||
when: ansible_distribution == "Archlinux"
|
when: ansible_distribution == "Archlinux"
|
||||||
|
|
||||||
- name: General | Software | Services | Install Fix (Looking at you, openSUSE)
|
- name: General | Software | Packages | Install Fix (Looking at you, openSUSE)
|
||||||
package:
|
package:
|
||||||
name:
|
name:
|
||||||
# openSUSE Tumbleweed comes without gnome-control-center being able to open
|
# openSUSE Tumbleweed comes without gnome-control-center being able to open
|
||||||
@@ -135,7 +136,7 @@
|
|||||||
state: absent
|
state: absent
|
||||||
|
|
||||||
# Ubuntu still uses snap for critical components like GNOME, must keep.
|
# Ubuntu still uses snap for critical components like GNOME, must keep.
|
||||||
- name: General | Software | Services | Disable Snap Daemon
|
- name: General | Software | Packages | Disable Snap Daemon
|
||||||
service:
|
service:
|
||||||
name: snapd
|
name: snapd
|
||||||
pattern: snapd
|
pattern: snapd
|
||||||
|
|||||||
@@ -23,6 +23,17 @@
|
|||||||
set_fact:
|
set_fact:
|
||||||
i3_config_file: "{{ i3_config_dir }}/config"
|
i3_config_file: "{{ i3_config_dir }}/config"
|
||||||
|
|
||||||
|
- name: Workstation | Linux | Software | i3 | Facts | pacman
|
||||||
|
set_fact:
|
||||||
|
i3_theme01: htop
|
||||||
|
when: ansible_pkg_mgr == "pacman"
|
||||||
|
|
||||||
|
- name: Workstation | Linux | Software | i3 | Facts | yay
|
||||||
|
set_fact:
|
||||||
|
i3_yay_packages:
|
||||||
|
- greybird-gtk-theme
|
||||||
|
when: ansible_pkg_mgr == "pacman"
|
||||||
|
|
||||||
#- name: Workstation | Linux | Software | i3 | Facts | TBD
|
#- name: Workstation | Linux | Software | i3 | Facts | TBD
|
||||||
# set_fact:
|
# set_fact:
|
||||||
# i3_package: i3-wm
|
# i3_package: i3-wm
|
||||||
@@ -44,6 +55,13 @@
|
|||||||
state: present
|
state: present
|
||||||
update_cache: yes
|
update_cache: yes
|
||||||
|
|
||||||
|
- name: Workstation | Linux | Software | i3 | Install (yay)
|
||||||
|
package:
|
||||||
|
name: i3_yay_packages
|
||||||
|
state: present
|
||||||
|
use: yay
|
||||||
|
when: ansible_pkg_mgr == "pacman"
|
||||||
|
|
||||||
- name: Workstation | Linux | Software | i3 | Config | Create Dir
|
- name: Workstation | Linux | Software | i3 | Config | Create Dir
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: "{{ i3_config_dir }}"
|
path: "{{ i3_config_dir }}"
|
||||||
@@ -120,3 +138,11 @@
|
|||||||
|
|
||||||
#- name: FAIL - DELETEME
|
#- name: FAIL - DELETEME
|
||||||
# meta: end_play
|
# meta: end_play
|
||||||
|
|
||||||
|
- name: Workstation | Linux | Software | i3 | Install (yay)
|
||||||
|
package:
|
||||||
|
name: i3_yay_packages
|
||||||
|
state: present
|
||||||
|
executable: yay
|
||||||
|
when: ansible_pkg_mgr == "pacman"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user