Update Ansible config

For tycho
main
earnest ma 2022-07-04 13:18:53 -04:00
parent 553b1a11b8
commit 82ce09f773
Signed by: earnest ma
GPG Key ID: A343F43342EB6E2A
7 changed files with 83 additions and 484 deletions

1
.envrc
View File

@ -1 +0,0 @@
use_nix

View File

@ -1,31 +1,28 @@
# ansible
# configs
Configuration through [Ansible](https://ansible.com) for my development environment(s).
Configuration through [Ansible](https://ansible.com) for my development environment(s). Commonly used on Fedora Linux 35 (Workstation Edition), sometimes using [Nix](https://nixos.org).
Clone & execute the main playbook locally: `ansible-playbook run.yml -K`
You will need to set SELinux to permissive and install nix first:
```bash
sudo setenforce 0
sh <(curl -L https://nixos.org/nix/install) --daemon
nix-shell
sh <(curl -L https://nixos.org/nix/install)
sudo dnf install -y --refresh ansible
./ensure.sh
```
- Run usual updates: `ansible-playbook update.yml -K`
## Contributing
- Packages: `ansible`, `ansible-lint`
- `git config core.hooksPath .git-hooks`
TODO(earne): Remove this/ update
## After first time run
## After First Run
- Restore all/ specific files (e.g. those with secrets) from a backup, if needed
- Dotfiles
- Grab ssh, gpg, and pash folder (from backup/existing device)
- Any config file that contains secrets? (eg aerc's accounts.conf, wakatime/wakapi, mbsync, etc.??)
- Restart!
- Configure and run backups!
- configure GUI apps as needed! `Fresh_install_apps_config.md`
- Secrets (GPG, wakatime)
- Generate SSH key and add to services
- Tailscale (`sudo tailscale up --ssh`)

View File

@ -1,9 +1,4 @@
#!/usr/bin/env bash
# For dotfiles/backups
sudo dnf install -yq git make restic stow
# For ansible
sudo dnf install -yq python ansible
ansible-galaxy collection install ansible.posix
ansible-galaxy collection install community.general

View File

@ -1,9 +1,5 @@
---
# Package management
# Essential packages: things that need to be available early
# Development packages
# Main packages
# then flatpak things
# Package management (Fedora, dnf & flatpak)
- name: Install essential packages
package:
@ -11,18 +7,10 @@
- git
- htop
- neovim # editor
- seahorse
- pinentry-gnome3 # kde, gpg cache password
- restic
- stow
- stow # dotfiles
- tmux
- util-linux-user
- xclip
# Shell
- zsh
# fonts
- jetbrains-mono-fonts-all
- fira-code-fonts
- zsh # shell
state: present
# Configure repos that will need to be available
@ -34,11 +22,11 @@
disable_gpg_check: yes
state: present
- name: Add repos for Google Chrome
import_tasks: packages/google-chrome.yml
#- name: Add repos for Google Chrome
# import_tasks: packages/google-chrome.yml
- name: Add repos for VSCodium
import_tasks: packages/vscodium.yml
#- name: Add repos for VSCodium
# import_tasks: packages/vscodium.yml
- name: Add repos for tailscale
import_tasks: packages/tailscale.yml
@ -47,115 +35,102 @@
package:
name:
- '@Development tools'
- alacritty
# Editors (more)
- codium
- emacs
# - unmet dependencies for emacs-everywhere
- xdotool
- xwininfo
# random
- xrandr
# - xdotool
# - xwininfo
# Utilities
- aerc
- bat
- cmake
- direnv
- exa
- fd-find
- fzf
- git-email
- git-publish
- isync
# - isync
- libtool # vterm
- msmtp
- rclone
- rclone-browser
# - msmtp
# - rclone
- ripgrep
- ShellCheck
- sharutils
# - sharutils
- tailscale
- VirtualBox
- toolbox
- zoxide
# ansible
- ansible # should already be available
# ansible: should already be available
- ansible
- ansible-lint
# rpm
- fedpkg
- mock
- rpmdevtools
# langs
## Go
- golang
## Python
- python3
- python3-pip
- poetry
## Web
- hugo
state: present
- name: Install main packages
package:
- name: Install packages for graphical systems
# TOOD(earne): Add if conditional
packages:
name:
- audacity
- calibre
- discord
- easytag
- ffmpeg
- firefox
- google-chrome-stable
- kio-gdrive # dolphin, google drive
- krename
- ksysguard
- mpv
- mpv-mpris
- nextcloud-client
- pavucontrol
- playerctl
- thunderbird
- qbittorrent
- wireguard-tools
- xgamma
# gaming
- steam
- wine
- winetricks
# panon and other kde things
- qt5-qtwebsockets-devel
- python3-docopt
- python3-numpy
- python3-pyaudio
- python3-cffi
- python3-websockets
state: present
# fonts
- jetbrains-mono-fonts-all
- fira-code-fonts
- alacritty
# ...
- pinentry-gnome3 # kde, gpg cache password
- seahorse
- xclip
# KDE
# - kio-gdrive # dolphin, google drive
# - krename
# - ksysguard
# ...
# - audacity
# - calibre
# - discord
# - easytag
# - ffmpeg
# - firefox
# - mpv
# - mpv-mpris
# - nextcloud-client
# - pavucontrol
# - playerctl
# - rclone-browser
# - thunderbird
# - qbittorrent
# - VirtualBox
# - xrandr
state: present
when: ansible_facts['hostname'] == "tycho"
#- name: Install zoom
# import_tasks: packages/zoom.yml
- name: Install veracrypt
import_tasks: packages/veracrypt.yml
#- name: Install veracrypt
# import_tasks: packages/veracrypt.yml
- name: Configure flatpak flathub remote
community.general.flatpak_remote:
name: flathub
flatpakrepo_url: https://flathub.org/repo/flathub.flatpakrepo
state: present
when: ansible_facts['hostname'] == "tycho"
- name: Install flatpaks
community.general.flatpak:
name:
- com.github.bleakgrey.tootle
- com.github.iwalton3.jellyfin-media-player
- com.github.tchx84.Flatseal
- com.obsproject.Studio
- com.sindresorhus.Caprine
- com.spotify.Client
- com.todoist.Todoist
- fi.skyjake.Lagrange
- md.obsidian.Obsidian
- net.ankiweb.Anki
- net.cozic.joplin_desktop
- org.kde.kdenlive
- us.zoom.Zoom
state: present
# - name: Install flatpaks
# community.general.flatpak:
# name:
# - com.github.bleakgrey.tootle
# - com.github.iwalton3.jellyfin-media-player
# - com.github.tchx84.Flatseal
# - com.obsproject.Studio
# - com.sindresorhus.Caprine
# - com.spotify.Client
# - com.todoist.Todoist
# - fi.skyjake.Lagrange
# - md.obsidian.Obsidian
# - net.ankiweb.Anki
# - net.cozic.joplin_desktop
# - org.kde.kdenlive
# - us.zoom.Zoom
# state: present

View File

@ -2,6 +2,6 @@
- name: Configure user earne
user:
name: earne
comment: EMW
comment: earnest ma
shell: /usr/bin/zsh
groups: earne,mock,wheel
groups: docker,earne,mock,wheel

View File

@ -1,9 +0,0 @@
{ pkgs ? import <nixpkgs> {} }:
with pkgs;
mkShell {
BuildInputs = [
ansible
ansible-lint
];
}

View File

@ -1,358 +0,0 @@
[ActivityManager][Global Shortcuts]
switch-to-activity-0766fad9-a0c8-4c5c-bce1-f48feac8f84b=
switch-to-activity-e962d2ce-43df-4bd7-950a-213ddec95a85=
[Alacritty.desktop][Global Shortcuts]
New=
_launch=Meta+T
[KDE Keyboard Layout Switcher][Global Shortcuts]
Switch keyboard layout to English (US)=
Switch to Next Keyboard Layout=Ctrl+Alt+K
[StandardShortcuts]
AboutApp=
AboutKDE=
Activate Next Tab=Ctrl+PgDown; Ctrl+]
Activate Previous Tab=Ctrl+PgUp; Ctrl+[
ActualSize=Ctrl+0
AddBookmark=Ctrl+B
Back=Back; Alt+Left
BackwardWord=Ctrl+Left
Begin=Ctrl+Home
BeginningOfLine=Home
Clear=
Close=Ctrl+Esc; Ctrl+W
ConfigureNotifications=
ConfigureToolbars=
Copy=Ctrl+Ins; Ctrl+C
CreateFolder=F10
Cut=Ctrl+X; Shift+Del
DeleteFile=Shift+Del
DeleteWordBack=Ctrl+Backspace
DeleteWordForward=Ctrl+Del
Deselect=Ctrl+Shift+A
DocumentBack=Alt+Shift+Left
DocumentForward=Alt+Shift+Right
Donate=
EditBookmarks=
End=Ctrl+End
EndOfLine=End
Find=Ctrl+F
FindNext=F3
FindPrev=Shift+F3
FitToHeight=
FitToPage=
FitToWidth=
Forward=Alt+Right; Forward
ForwardWord=Ctrl+Right
FullScreen=Ctrl+Shift+F
Goto=
GotoLine=Ctrl+G
GotoPage=
Help=F1
Home=Home Page; Alt+Home
KeyBindings=Ctrl+Alt+,
Mail=
MoveToTrash=Del
New=Ctrl+N
Next=PgDown
NextCompletion=Ctrl+Down
Open=Ctrl+O
OpenRecent=
Paste=Shift+Ins; Ctrl+V
Paste Selection=Ctrl+Shift+Ins
Preferences=Ctrl+Shift+,
PrevCompletion=Ctrl+Up
Print=Ctrl+P
PrintPreview=
Prior=PgUp
Quit=Ctrl+Q
Redo=Ctrl+Shift+Z
Reload=F5; Refresh
RenameFile=F2
Replace=Ctrl+R
ReportBug=
Revert=
RotateDown=Down
RotateUp=Up
Save=Ctrl+S
SaveAs=Ctrl+Shift+S
SaveOptions=
SelectAll=Ctrl+A
ShowHideHiddenFiles=Alt+.; Ctrl+H
ShowMenubar=Ctrl+M
ShowStatusbar=
ShowToolbar=
Spelling=
SubstringCompletion=Ctrl+T
SwitchApplicationLanguage=
TextCompletion=Ctrl+E
TipofDay=
Undo=Ctrl+Z
Up=Alt+Up
WhatsThis=Shift+F1
Zoom=
ZoomIn=Ctrl+=; Ctrl++
ZoomOut=Ctrl+-
[kcm_touchpad][Global Shortcuts]
Disable Touchpad=Touchpad Off
Enable Touchpad=Touchpad On
Toggle Touchpad=Touchpad Toggle
[kded5][Global Shortcuts]
Show System Activity=Ctrl+Esc
display=Display; Meta+P
[khotkeys][Global Shortcuts]
{3795c6bb-234c-445e-8acb-f6ccc34d5e57}=Ctrl+Alt+T
{d03619b6-9b3c-48cc-9d9c-a2aadb485550}=
{e562f8de-ad21-47df-b3d2-163f60eb6801}=Meta+Z
{efa182ee-5745-46df-81aa-02e170bdb596}=
[kmix][Global Shortcuts]
decrease_microphone_volume=Microphone Volume Down
decrease_volume=Volume Down; Ctrl+Alt+Shift+Down
increase_microphone_volume=Microphone Volume Up
increase_volume=Ctrl+Alt+Shift+Up; Volume Up
mic_mute=Microphone Mute; Meta+Volume Mute
mute=Volume Mute
[ksmserver][Global Shortcuts]
Halt Without Confirmation=
Lock Session=Screensaver; Meta+Esc; Ctrl+Alt+L; Meta+L
Log Out=Ctrl+Alt+Del
Log Out Without Confirmation=
Reboot Without Confirmation=
[kwin][Global Shortcuts]
Activate Window Demanding Attention=Ctrl+Alt+A
Decrease Opacity=Meta+Alt+-
Expose=Ctrl+F9; Meta+Tab
ExposeAll=Launch (C); Ctrl+F10; Meta+Shift+Tab
ExposeClass=Ctrl+F7
Increase Opacity=Meta+Alt+=
Invert Screen Colors=
Kill Window=Ctrl+Alt+Esc
MoveMouseToCenter=Meta+F6
MoveMouseToFocus=Meta+F5
MoveZoomDown=
MoveZoomLeft=
MoveZoomRight=
MoveZoomUp=
Setup Window Shortcut=
Show Desktop=Meta+D
ShowDesktopGrid=Meta+Ctrl+D; Ctrl+F8
Suspend Compositing=Alt+Shift+F12
Switch One Desktop Down=Meta+Ctrl+Down
Switch One Desktop Up=Meta+Ctrl+Up
Switch One Desktop to the Left=Meta+Ctrl+Left
Switch One Desktop to the Right=Meta+Ctrl+Right
Switch Window Down=Meta+Alt+Down
Switch Window Left=Meta+Alt+Left
Switch Window Right=Meta+Alt+Right
Switch Window Up=Meta+Alt+Up
Switch to Desktop 1=Ctrl+F1
Switch to Desktop 10=
Switch to Desktop 11=
Switch to Desktop 12=
Switch to Desktop 13=
Switch to Desktop 14=
Switch to Desktop 15=
Switch to Desktop 16=
Switch to Desktop 17=
Switch to Desktop 18=
Switch to Desktop 19=
Switch to Desktop 2=Ctrl+F2
Switch to Desktop 20=
Switch to Desktop 3=Ctrl+F3
Switch to Desktop 4=Ctrl+F4
Switch to Desktop 5=
Switch to Desktop 6=
Switch to Desktop 7=
Switch to Desktop 8=
Switch to Desktop 9=
Switch to Next Desktop=
Switch to Next Screen=
Switch to Previous Desktop=
Switch to Previous Screen=
Switch to Screen 0=
Switch to Screen 1=
Switch to Screen 2=
Switch to Screen 3=
Switch to Screen 4=
Switch to Screen 5=
Switch to Screen 6=
Switch to Screen 7=
Toggle Night Color=
Toggle Window Raise/Lower=
TrackMouse=
Walk Through Desktop List=
Walk Through Desktop List (Reverse)=
Walk Through Desktops=
Walk Through Desktops (Reverse)=
Walk Through Windows=Alt+Tab
Walk Through Windows (Reverse)=Alt+Shift+Backtab
Walk Through Windows Alternative=
Walk Through Windows Alternative (Reverse)=
Walk Through Windows of Current Application=Alt+`
Walk Through Windows of Current Application (Reverse)=Alt+~
Walk Through Windows of Current Application Alternative=
Walk Through Windows of Current Application Alternative (Reverse)=
Window Above Other Windows=
Window Below Other Windows=
Window Close=Alt+F4; Meta+Q
Window Fullscreen=Meta+F
Window Grow Horizontal=
Window Grow Vertical=
Window Lower=
Window Maximize=Meta+PgUp; Meta+Shift+Up
Window Maximize Horizontal=
Window Maximize Vertical=
Window Minimize=Meta+Shift+Down; Meta+PgDown
Window Move=
Window Move Center=
Window No Border=
Window On All Desktops=
Window One Desktop Down=Meta+Ctrl+Shift+Down
Window One Desktop Up=Meta+Ctrl+Shift+Up
Window One Desktop to the Left=Meta+Ctrl+Shift+Left
Window One Desktop to the Right=Meta+Ctrl+Shift+Right
Window Operations Menu=Alt+F3
Window Pack Down=
Window Pack Left=
Window Pack Right=
Window Pack Up=
Window Quick Tile Bottom=Meta+Down
Window Quick Tile Bottom Left=
Window Quick Tile Bottom Right=
Window Quick Tile Left=Meta+Left
Window Quick Tile Right=Meta+Right
Window Quick Tile Top=Meta+Up
Window Quick Tile Top Left=
Window Quick Tile Top Right=
Window Raise=
Window Resize=
Window Shade=
Window Shrink Horizontal=
Window Shrink Vertical=
Window to Desktop 1=
Window to Desktop 10=
Window to Desktop 11=
Window to Desktop 12=
Window to Desktop 13=
Window to Desktop 14=
Window to Desktop 15=
Window to Desktop 16=
Window to Desktop 17=
Window to Desktop 18=
Window to Desktop 19=
Window to Desktop 2=
Window to Desktop 20=
Window to Desktop 3=
Window to Desktop 4=
Window to Desktop 5=
Window to Desktop 6=
Window to Desktop 7=
Window to Desktop 8=
Window to Desktop 9=
Window to Next Desktop=
Window to Next Screen=Meta+Shift+Right
Window to Previous Desktop=
Window to Previous Screen=Meta+Shift+Left
Window to Screen 0=
Window to Screen 1=
Window to Screen 2=
Window to Screen 3=
Window to Screen 4=
Window to Screen 5=
Window to Screen 6=
Window to Screen 7=
view_actual_size=Meta+0
view_zoom_in=Meta+=
view_zoom_out=Meta+-
[mediacontrol][Global Shortcuts]
mediavolumedown=
mediavolumeup=
nextmedia=Media Next; Ctrl+Alt+}
pausemedia=Media Pause
playmedia=
playpausemedia=Media Play; Ctrl+Alt+Shift+P
previousmedia=Ctrl+Alt+{; Media Previous
stopmedia=Media Stop
[org.kde.dolphin.desktop][Global Shortcuts]
_launch=Meta+E
[org.kde.krunner.desktop][Global Shortcuts]
RunClipboard=Alt+Shift+F2
_launch=Meta+S; Alt+Space; Search; Alt+F2
[org.kde.ksysguard.desktop][Global Shortcuts]
_launch=Ctrl+Shift+Esc
[org.kde.plasma.emojier.desktop][Global Shortcuts]
_launch=Meta+.
[org.kde.spectacle.desktop][Global Shortcuts]
ActiveWindowScreenShot=
CurrentMonitorScreenShot=
FullScreenScreenShot=Shift+Print; Print
OpenWithoutScreenshot=
RectangularRegionScreenShot=Meta+Shift+Print; Meta+Shift+S
WindowUnderCursorScreenShot=Meta+Ctrl+Print
_launch=Meta+Print
[org_kde_powerdevil][Global Shortcuts]
Decrease Keyboard Brightness=Keyboard Brightness Down
Decrease Screen Brightness=Monitor Brightness Down
Hibernate=Hibernate
Increase Keyboard Brightness=Keyboard Brightness Up
Increase Screen Brightness=Monitor Brightness Up
PowerDown=Power Down
PowerOff=Power Off
Sleep=Sleep
Toggle Keyboard Backlight=Keyboard Light On/Off
Turn Off Screen=
[plasmashell][Global Shortcuts]
activate task manager entry 1=Meta+1
activate task manager entry 10=
activate task manager entry 2=Meta+2
activate task manager entry 3=Meta+3
activate task manager entry 4=Meta+4
activate task manager entry 5=Meta+5
activate task manager entry 6=Meta+6
activate task manager entry 7=Meta+7
activate task manager entry 8=Meta+8
activate task manager entry 9=Meta+9
activate widget 24=Meta+M
activate widget 3=Alt+F1
activate widget 42=Alt+F1
activate widget 47=Alt+F1
clear-history=
clipboard_action=Ctrl+Alt+X
cycleNextAction=
cyclePrevAction=
edit_clipboard=
manage activities=Meta+A
next activity=
previous activity=
repeat_action=Ctrl+Alt+R
show dashboard=Ctrl+F12
show-barcode=
show-on-mouse-pos=Meta+V
stop current activity=
switch to next activity=
switch to previous activity=
toggle do not disturb=
[systemsettings.desktop][Global Shortcuts]
_launch=Tools
kcm-kscreen=
kcm-lookandfeel=
kcm-users=
powerdevilprofilesconfig=
screenlocker=