stuff
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
- name: Restart NetworkManager
|
- name: Restart resolvconf
|
||||||
service:
|
service:
|
||||||
name: NetworkManager
|
name: resolvconf
|
||||||
state: restarted
|
state: restarted
|
||||||
|
|||||||
@@ -8,7 +8,6 @@
|
|||||||
- name: Ensure Users are Configured Correctly
|
- name: Ensure Users are Configured Correctly
|
||||||
user:
|
user:
|
||||||
name: "{{ item.value.name }}"
|
name: "{{ item.value.name }}"
|
||||||
uid: "{{ item.value.uid }}"
|
|
||||||
group: "{{ item.value.group }}"
|
group: "{{ item.value.group }}"
|
||||||
groups: "{{ item.value.groups }}"
|
groups: "{{ item.value.groups }}"
|
||||||
state: "{{ item.value.state }}"
|
state: "{{ item.value.state }}"
|
||||||
@@ -47,40 +46,21 @@
|
|||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
loop: "{{ ansible_galaxy_collections }}"
|
loop: "{{ ansible_galaxy_collections }}"
|
||||||
|
|
||||||
- name: Add DNF configuration
|
|
||||||
template:
|
|
||||||
src: dnf.conf.j2
|
|
||||||
dest: /etc/dnf/dnf.conf
|
|
||||||
owner: root
|
|
||||||
group: root
|
|
||||||
|
|
||||||
- name: Add NFS share mountpoint to fstab
|
- name: Add NFS share mountpoint to fstab
|
||||||
lineinfile:
|
lineinfile:
|
||||||
dest: /etc/fstab
|
dest: /etc/fstab
|
||||||
line: "cleric.opal.sh:/data/media /home/opal/share nfs sec=sys 0 0"
|
line: "cleric.opal.sh:/data/media /home/opal/share nfs sec=sys 0 0"
|
||||||
|
|
||||||
- name: Disable systemd-resolved systemd service
|
- name: Ensure resolvconf is started
|
||||||
service:
|
systemd:
|
||||||
enabled: no
|
name: resolvconf
|
||||||
name: systemd-resolved
|
state: started
|
||||||
|
enabled: yes
|
||||||
|
|
||||||
- name: Stop systemd-resolved systemd service
|
- name: Add /etc/resolvconf template
|
||||||
service:
|
|
||||||
state: stopped
|
|
||||||
name: systemd-resolved
|
|
||||||
|
|
||||||
- name: Add /etc/resolv.conf template
|
|
||||||
template:
|
template:
|
||||||
src: resolv.conf.j2
|
src: resolv.conf.j2
|
||||||
dest: /etc/resolv.conf
|
dest: /etc/resolvconf/resolv.conf.d/base
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
|
notify: 'Restart resolvconf'
|
||||||
- name: Add /etc/NetworkManager/NetworkManager.conf template
|
|
||||||
template:
|
|
||||||
src: NetworkManager.conf.j2
|
|
||||||
dest: /etc/NetworkManager/NetworkManager.conf
|
|
||||||
owner: root
|
|
||||||
group: root
|
|
||||||
notify:
|
|
||||||
- Restart NetworkManager
|
|
||||||
|
|||||||
@@ -1,8 +0,0 @@
|
|||||||
[main]
|
|
||||||
fastestmirror=True
|
|
||||||
max_parallel_downloads=10
|
|
||||||
gpgcheck=True
|
|
||||||
installonly_limit=3
|
|
||||||
clean_requirements_on_remove=True
|
|
||||||
best=False
|
|
||||||
skip_if_unavailable=True
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
██╗ ██╗███████╗██╗ ██████╗ ██████╗ ███╗ ███╗███████╗
|
|
||||||
██║ ██║██╔════╝██║ ██╔════╝██╔═══██╗████╗ ████║██╔════╝
|
|
||||||
██║ █╗ ██║█████╗ ██║ ██║ ██║ ██║██╔████╔██║█████╗
|
|
||||||
██║███╗██║██╔══╝ ██║ ██║ ██║ ██║██║╚██╔╝██║██╔══╝
|
|
||||||
╚███╔███╔╝███████╗███████╗╚██████╗╚██████╔╝██║ ╚═╝ ██║███████╗
|
|
||||||
╚══╝╚══╝ ╚══════╝╚══════╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚══════╝
|
|
||||||
@@ -2,4 +2,3 @@
|
|||||||
nameserver 1.1.1.2
|
nameserver 1.1.1.2
|
||||||
nameserver 1.0.0.2
|
nameserver 1.0.0.2
|
||||||
nameserver 2606:4700:4700:0:0:0:0:1112
|
nameserver 2606:4700:4700:0:0:0:0:1112
|
||||||
nameserver 2606:4700:4700:0:0:0:0:1002
|
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
---
|
---
|
||||||
init_groups:
|
init_groups:
|
||||||
- wheel
|
|
||||||
- docker
|
- docker
|
||||||
|
|
||||||
remove_directories:
|
remove_directories:
|
||||||
@@ -19,19 +18,16 @@ create_directories:
|
|||||||
- downloads
|
- downloads
|
||||||
- pictures
|
- pictures
|
||||||
- share
|
- share
|
||||||
- code
|
- scripts
|
||||||
- code/scripts
|
- projects
|
||||||
- code/projects
|
|
||||||
- code/ansible
|
|
||||||
- code/repos
|
|
||||||
|
|
||||||
init_users:
|
init_users:
|
||||||
opal:
|
opal:
|
||||||
name: opal
|
name: opal
|
||||||
uid: 2000
|
|
||||||
group: opal
|
group: opal
|
||||||
groups:
|
groups:
|
||||||
- wheel
|
- sudo
|
||||||
|
- docker
|
||||||
state: present
|
state: present
|
||||||
shell: /bin/bash
|
shell: /bin/bash
|
||||||
create_home: true
|
create_home: true
|
||||||
|
|||||||
@@ -1,42 +1,38 @@
|
|||||||
---
|
---
|
||||||
- name: Upgrade all packages
|
- name: Upgrade all packages
|
||||||
ansible.builtin.dnf:
|
package:
|
||||||
name: "*"
|
name: "*"
|
||||||
state: latest
|
state: latest
|
||||||
|
|
||||||
- name: install window manager packages
|
- name: install window manager packages
|
||||||
dnf:
|
package:
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
state: present
|
state: present
|
||||||
loop: "{{ wm_packages }}"
|
loop: "{{ wm_packages }}"
|
||||||
|
|
||||||
- name: install cli packages
|
- name: install cli packages
|
||||||
dnf:
|
package:
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
state: present
|
state: present
|
||||||
loop: "{{ general_packages }}"
|
loop: "{{ general_packages }}"
|
||||||
|
|
||||||
- name: install doom dependencies
|
- name: install doom dependencies
|
||||||
dnf:
|
package:
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
state: present
|
state: present
|
||||||
loop: "{{ doom_dep_packages }}"
|
loop: "{{ doom_dep_packages }}"
|
||||||
|
|
||||||
- name: install networking packages
|
- name: install networking packages
|
||||||
dnf:
|
package:
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
state: present
|
state: present
|
||||||
loop: "{{ networking_packages }}"
|
loop: "{{ networking_packages }}"
|
||||||
|
|
||||||
- name: install font packages
|
- name: install font packages
|
||||||
dnf:
|
package:
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
state: present
|
state: present
|
||||||
loop: "{{ font_packages }}"
|
loop: "{{ font_packages }}"
|
||||||
|
|
||||||
- name: Add the flathub flatpak repository remote
|
- name: Add flathub repository
|
||||||
community.general.flatpak_remote:
|
command: flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
|
||||||
name: flathub
|
|
||||||
state: present
|
|
||||||
flatpakrepo_url: https://dl.flathub.org/repo/flathub.flatpakrepo
|
|
||||||
method: user
|
|
||||||
|
|||||||
@@ -5,7 +5,6 @@ wm_packages:
|
|||||||
- swaybg
|
- swaybg
|
||||||
- swaylock
|
- swaylock
|
||||||
- waybar
|
- waybar
|
||||||
- wofi
|
|
||||||
- dunst
|
- dunst
|
||||||
- grim
|
- grim
|
||||||
- light
|
- light
|
||||||
@@ -24,47 +23,37 @@ general_packages:
|
|||||||
- make
|
- make
|
||||||
- tldr
|
- tldr
|
||||||
- gnupg2
|
- gnupg2
|
||||||
- neovim
|
|
||||||
- trash-cli
|
- trash-cli
|
||||||
- lshw
|
- lshw
|
||||||
- htop
|
- htop
|
||||||
- rsync
|
- rsync
|
||||||
- p7zip
|
- p7zip
|
||||||
- neovim
|
|
||||||
- hugo
|
- hugo
|
||||||
- firefox
|
|
||||||
- gnome-tweaks
|
|
||||||
- gimp
|
- gimp
|
||||||
- emacs
|
- emacs
|
||||||
- mpv
|
- mpv
|
||||||
- alacritty
|
- alacritty
|
||||||
- nfs-utils
|
- nfs-common
|
||||||
|
- rpcbind
|
||||||
|
- nfs-kernel-server
|
||||||
- strawberry
|
- strawberry
|
||||||
- ansible
|
- ansible
|
||||||
- nicotine+
|
|
||||||
- easyeffects
|
|
||||||
- lsp-plugins
|
|
||||||
- newsboat
|
- newsboat
|
||||||
- udiskie
|
- udiskie
|
||||||
- transmission-qt
|
- transmission-qt
|
||||||
- pavucontrol
|
- pavucontrol
|
||||||
- pipewire-pulseaudio
|
|
||||||
- remove-retired-packages
|
|
||||||
- newsboat
|
|
||||||
- p7zip
|
|
||||||
- steam
|
|
||||||
- thunderbird
|
- thunderbird
|
||||||
- grimshot
|
|
||||||
- zathura
|
- zathura
|
||||||
- zathura-pdf-mupdf
|
- flatpak
|
||||||
|
- gnome-software-plugin-flatpak
|
||||||
|
- blueman
|
||||||
|
- resolvconf
|
||||||
|
|
||||||
networking_packages:
|
networking_packages:
|
||||||
- nmap
|
- nmap
|
||||||
- whois
|
- whois
|
||||||
- network-manager-applet
|
- nm-tray
|
||||||
- nm-connection-editor
|
|
||||||
- wireguard-tools
|
- wireguard-tools
|
||||||
- bind
|
|
||||||
- telnet
|
- telnet
|
||||||
|
|
||||||
doom_dep_packages:
|
doom_dep_packages:
|
||||||
@@ -72,20 +61,23 @@ doom_dep_packages:
|
|||||||
- libtool # Needed to compile vterm in Doom Emacs
|
- libtool # Needed to compile vterm in Doom Emacs
|
||||||
- cmake # Needed to compile vterm in Doom Emacs
|
- cmake # Needed to compile vterm in Doom Emacs
|
||||||
- discount # Markdown Compiler
|
- discount # Markdown Compiler
|
||||||
- ShellCheck # Shell linter for Doom Emacs
|
- shellcheck # Shell linter for Doom Emacs
|
||||||
- python3-pyflakes
|
- python3-pyflakes
|
||||||
- python3-isort
|
- python3-isort
|
||||||
- pipenv
|
- pipenv
|
||||||
- python3-nose2
|
- python3-nose2
|
||||||
- python3-nose
|
- python3-nose
|
||||||
- python3-pytest
|
- python3-pytest
|
||||||
- python3-lsp-black
|
- python3-pylsp-black
|
||||||
|
|
||||||
font_packages:
|
font_packages:
|
||||||
- fontawesome5-fonts
|
- fonts-font-awesome
|
||||||
- abattis-cantarell-fonts
|
- fonts-cantarell
|
||||||
- google-noto-cjk-fonts
|
- fonts-noto-cjk
|
||||||
- google-noto-sans-ugaritic-fonts
|
- fonts-noto-core
|
||||||
|
- fonts-hack
|
||||||
|
|
||||||
flatpak_packages:
|
flatpak_packages:
|
||||||
- org.signal.Signal
|
- org.signal.Signal
|
||||||
|
- org.nicotine_plus.Nicotine
|
||||||
|
- net.ankiweb.Anki
|
||||||
|
|||||||
@@ -1,19 +0,0 @@
|
|||||||
---
|
|
||||||
- name: Clone yay
|
|
||||||
git:
|
|
||||||
repo: https://aur.archlinux.org/yay-bin.git
|
|
||||||
dest: "{{ srcdir }}/yay"
|
|
||||||
update: true
|
|
||||||
|
|
||||||
- name: Build and install yay
|
|
||||||
command:
|
|
||||||
chdir: "{{ srcdir }}/yay"
|
|
||||||
cmd: "makepkg -sfi --noconfirm"
|
|
||||||
creates: /usr/bin/yay
|
|
||||||
|
|
||||||
- name: Install yay packages
|
|
||||||
community.general.pacman:
|
|
||||||
name: "{{ item }}"
|
|
||||||
state: present
|
|
||||||
executable: yay
|
|
||||||
loop: "{{ yay_packages }}"
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
---
|
|
||||||
homedir: "{{ lookup('env','HOME') }}"
|
|
||||||
srcdir: "{{ homedir }}/code/repos/yay"
|
|
||||||
|
|
||||||
yay_packages:
|
|
||||||
- grimshot
|
|
||||||
- wlsunset
|
|
||||||
Reference in New Issue
Block a user