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` Clone & execute the main playbook locally: `ansible-playbook run.yml -K`
You will need to set SELinux to permissive and install nix first:
```bash ```bash
sudo setenforce 0 sudo setenforce 0
sh <(curl -L https://nixos.org/nix/install) --daemon sh <(curl -L https://nixos.org/nix/install)
nix-shell sudo dnf install -y --refresh ansible
./ensure.sh
``` ```
- Run usual updates: `ansible-playbook update.yml -K` - Run usual updates: `ansible-playbook update.yml -K`
## Contributing ## Contributing
- Packages: `ansible`, `ansible-lint`
- `git config core.hooksPath .git-hooks` - `git config core.hooksPath .git-hooks`
TODO(earne): Remove this/ update 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 - Dotfiles
- Grab ssh, gpg, and pash folder (from backup/existing device) - Secrets (GPG, wakatime)
- Any config file that contains secrets? (eg aerc's accounts.conf, wakatime/wakapi, mbsync, etc.??) - Generate SSH key and add to services
- Restart! - Tailscale (`sudo tailscale up --ssh`)
- Configure and run backups!
- configure GUI apps as needed! `Fresh_install_apps_config.md`

View File

@ -1,9 +1,4 @@
#!/usr/bin/env bash #!/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 ansible.posix
ansible-galaxy collection install community.general ansible-galaxy collection install community.general

View File

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

View File

@ -2,6 +2,6 @@
- name: Configure user earne - name: Configure user earne
user: user:
name: earne name: earne
comment: EMW comment: earnest ma
shell: /usr/bin/zsh 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=