mirror of
https://github.com/eoli3n/dotfiles
synced 2024-11-22 23:12:32 +01:00
Sway acid dark
docker/archlinux | ||
group_vars | ||
roles | ||
screenshots | ||
vagrant | ||
.gitignore | ||
.gitmodules | ||
.travis.yml | ||
ansible.cfg | ||
hosts.template | ||
install.yml | ||
README.md | ||
TODO |
Sway Acid Dark
Sway fish pure waybar neovim
Tiny irc client
Firefox/Tabliss Wofi
Connman/Thunar GTK Theme
Why Ansible ?
- Modularity: Roles as modules.
- Factorization: It uses jinja2 templating engine.
- Simplicity: No agent, only SSH, available via pip.
- Flexibility: Push your dotfiles from/to any hosts.
- Toolbox: Dry-run mode, diff mode, secrets encryption, tags...
Test
See vagrant/*/README.md
and docker/*/README.md
.
How to
Use carefully, backup your home before using !
You should use --check
to dry-run and --diff
first.
Check details in roles/*/README.md
.
1. Fork Me!
2. Clone your repo
Use recursive mode to get aur ansible module for Archlinux.
git clone --recursive https://github.com/*/dotfiles
3. Configure inventory
hosts
file is defaultly gitignored.
cd dotfiles
cp hosts.template hosts
Add your hosts in section
- cli: install only cli tools
- desktop: install desktop environment
Define which user to configure with ansible_user.
You can't use root account for host in desktop section.
Users needs to be sudoers.
[cli]
server1 ansible_user=root
[desktop]
host1 ansible_user=user
host2 ansible_user=user2
If you just want to use it on local host
[desktop]
localhost ansible_connection=local ansible_user=user
4. Configure SSH
Push your SSH public key on all your users@hosts
ssh-copy-id -i path/to/ssh/key.pub user@host
5. (Dry)Run
ansible-playbook install.yml -CD
ansible-playbook install.yml
To configure cli tools for root on desktop hosts
ansible-playbook install.yml -b -K