-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.yml
59 lines (50 loc) · 1.35 KB
/
main.yml
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
---
- name: Configure host.
hosts: localhost
vars_files:
- vars/dock.yml
- vars/dotfiles.yml
- vars/general.yml
- vars/homebrew.yml
- vars/mas.yml
- vars/oh-my-zsh.yml
- vars/pip.yml
- vars/sudoers.yml
- vars/terminal.yml
pre_tasks:
- name: Assert that variables are set
ansible.builtin.assert:
that:
- mas_email != ""
- mas_password != ""
when: mas_installed_apps | length > 0
tags: ["preflight"]
roles:
- role: elliotweiser.osx-command-line-tools
- role: geerlingguy.mac.homebrew
tags: ['homebrew']
- role: geerlingguy.dotfiles
when: configure_dotfiles
tags: ['dotfiles']
- role: geerlingguy.mac.mas
when: mas_installed_apps or mas_installed_app_ids
tags: ['mas']
- role: geerlingguy.mac.dock
when: configure_dock
tags: ['dock']
tasks:
- import_tasks: tasks/sudoers.yml
when: configure_sudoers
tags: ['sudoers']
- import_tasks: tasks/terminal.yml
when: configure_terminal
tags: ['terminal']
- import_tasks: tasks/extra-packages.yml
tags: ['extra-packages']
- import_tasks: tasks/osx.yml
when: configure_osx
tags: ['osx']
- import_tasks: tasks/oh-my-zsh.yml
tags: ["oh-my-zsh"]
- import_tasks: tasks/astro-vim.yml
tags: ["astro-vim"]