Red Hat
System replacement
Multiple machines
Share between Work & Home
Cow Photo by Rasmus Andersen on Unsplash
What about pet cows?
Learn a new skill
Share
Cool Factor
Framing
Photo by Angèle Kamp on Unsplash
Just install and accept defaults.
# update it to do some stuff
$EDITOR tasks/main.yml
# run it - lazy shortcut
ansible -K localhost -c local \
-m include_role -a name=$USER-environment
(and commit/push to a repo for sharing)
Package types:
files/no-passwords.conf
PasswordAuthentication no
Ansible:
templates/sudoers-custom.j2
{{ ansible_user_id }} ALL=(ALL) NOPASSWD: ALL
Ansible:
ansible-galaxy role install \
--force \
git+https://github.com/$USER/$USER-environment
ansible -K localhost -c local \
-m include_role -a name=$USER-environment
Note
You can apply remotely as well, see docs.
dot_gitconfig.tmpl
Useful code that isn’t distro packaged (yet)
GitHub Releases
Python Packages
Node Packages
~/.local/share/chezmoi/ .chezmoiexternal.toml.tmpl
{{ $versions := (fromYaml (include "versions.yaml")) -}}
["bin/ollama"]
type = "file"
executable = true
url = "https://github.com/ollama/ollama/releases/download/{{ $versions.ollama }}/ollama-linux-amd64"
Tip
You can use this with renovate to get automated updates.
~/.local/share/chezmoi/ run_after_poetryinstall.sh
Note
Can follow a similar pattern for npm packages.
Tip
You can use this with renovate/dependabot to get automated updates.
$PATH
)Thanks for attending!