1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
- hosts: all
  tasks:
    - group_by: key=os_{{ ansible_distribution }}
      tags: always

- hosts: all
  pre_tasks:
    - name: update dotfiles repo
      git:
        repo: https://github.com/kejadlen/dotfiles.git
        dest: ~/.dotfiles
      ignore_errors: yes

- import_playbook: playbooks/defaults.yml

- hosts: os_MacOSX
  roles:
    - role: macos
  tasks:
    - name: install fennel
      command: luarocks install fennel

- hosts: all
  roles:
    - dotfiles
    - ruby
    - zsh