You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

63 lines
1.3 KiB

9 years ago
# Dotfiles
9 years ago
This repo contains both my dotfiles as well as [Ansible][ansible] playbooks to
provision new machines.
6 years ago
**Use at your own risk.**
9 years ago
[ansible]: https://github.com/ansible/ansible
# Playbooks
- `bootstrap.yml`: SSH and Homebrew setup
- `main.yml`: Pretty much everything else
- `imac.yml`: For quieting down the broken HDD fan on my iMac
- `macbook_pro.yml`: Remap Caps Lock to Control on the laptop
# Usage
Use a [tracking issue][tracking-issue] as a checklist for local provisioning.
[tracking-issue]: https://github.com/kejadlen/dotfiles/issues/new?template=setup.md
## Remote provisioning
9 years ago
On the control machine:
```
brew install ansible
git clone --recursive git@github.com:kejadlen/dotfiles
cd dotfiles/ansible
echo HOST > hosts.private
ansible-playbook bootstrap.yml --ask-pass --ask-become-pass
ansible-playbook main.yml --ask-become-pass
```
9 years ago
A couple items that I haven't gotten around to automating yet that need to be
manually run post-provisioning:
``` shell
9 years ago
# Symlink ~/.dotfiles to Dropbox
rm -rf ~/.dotfiles
ln -s ~/Dropbox/dotfiles ~/.dotfiles
```
# Development
9 years ago
Ansible tags are indispensible when tweaking the config:
```
- command: echo debug
tags: debug
```
``` shell
9 years ago
ansible-playbook main.yml --ask-become-pass --tags=debug
```
# TODO
See [issues](https://github.com/kejadlen/dotfiles/issues).