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.
29 lines
702 B
29 lines
702 B
- hosts: all
|
|
tasks:
|
|
- group_by: key={{ ansible_distribution }}
|
|
- hosts: MacOSX
|
|
gather_facts: false
|
|
tasks:
|
|
- name: install dependencies
|
|
homebrew: name={{ item }} state=present
|
|
with_items:
|
|
- git
|
|
- stow
|
|
- hosts: Debian
|
|
gather_facts: false
|
|
tasks:
|
|
- name: install dependencies
|
|
apt: pkg={{ item }} state=present
|
|
with_items:
|
|
- git
|
|
- stow
|
|
- hosts: all
|
|
gather_facts: false
|
|
tasks:
|
|
- name: clone dotfiles
|
|
git: repo=https://github.com/kejadlen/dotfiles.git dest=~/.dotfiles
|
|
- name: stow files
|
|
command: stow --target={{ ansible_env.HOME }} --stow {{ ansible_env.HOME }}/.dotfiles/{{ item }}
|
|
with_items:
|
|
- git
|