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.
32 lines
814 B
32 lines
814 B
- hosts: dev
|
|
tasks:
|
|
- name: install dependencies
|
|
homebrew: name={{ item }} state=present
|
|
with_items:
|
|
- git
|
|
- stow
|
|
- hosts: prgmr
|
|
tasks:
|
|
- name: install dependencies
|
|
apt: pkg={{ item }} state=present
|
|
with_items:
|
|
- git
|
|
- stow
|
|
- hosts: all
|
|
vars:
|
|
stow_packages:
|
|
- git
|
|
- ruby
|
|
- tmux
|
|
- vim
|
|
tasks:
|
|
- name: clone/update dotfiles
|
|
git: repo=https://github.com/kejadlen/dotfiles.git dest=~/.dotfiles
|
|
- name: stow files
|
|
command: chdir={{ ansible_env.HOME }}/.dotfiles stow --target={{ ansible_env.HOME }} --stow {{ item }}
|
|
with_items: stow_packages
|
|
- name: link unstowable files
|
|
file: src={{ ansible_env.HOME }}/.dotfiles/{{ item.key }} dest={{ ansible_env.HOME}}/{{ item.value }} state=link
|
|
with_dict:
|
|
git/.gitignore: .gitignore
|