mirror of https://github.com/eoli3n/dotfiles
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
4 days ago | |
---|---|---|
docker/archlinux | 2 years ago | |
group_vars | 6 days ago | |
roles | 4 days ago | |
screenshots | 3 years ago | |
tasks | 1 year ago | |
.gitignore | 4 years ago | |
.gitmodules | 3 years ago | |
.pre-commit-config.yaml | 7 months ago | |
.travis.yml | 3 years ago | |
README.md | 2 years ago | |
TODO.md | 2 years ago | |
ansible.cfg | 3 years ago | |
hosts.template | 3 years ago | |
init-deblike.yml | 3 years ago | |
install.yml | 4 months ago |
README.md
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...
How to
Use carefully, backup your home before using !
You should use --check
and --diff
to dryrun first.
Check details in roles/*/README.md
.
This project only manages dotfiles.
To install required packages, use arch-config, void-config or nix-config.
1. Fork Me!
2. Clone your repo
git clone https://github.com/*/dotfiles
Then, configure desktop environment in group_vars/all.yml.
3. Configure inventory
Create inventory file from template.
cd dotfiles
cp hosts.template hosts
Add your hostnames in section:
- cli: only cli dotfiles
- desktop: cli dotfiles + desktop environment
Define which user will get configurations with ansible_user var.
a. localhost run
[cli]
[desktop]
localhost ansible_connection=local
b. multiple hosts run
Note: desktop hosts can't use root.
[cli]
server1 ansible_user=root
[desktop]
host1 ansible_user=user
host2 ansible_user=user2
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
For desktop hosts, if ansible_user
is sudoer, to install cli tools for root, use:
ansible-playbook install.yml -l host1 -b -K