-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.yml
64 lines (50 loc) · 1.56 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
60
61
62
63
64
---
- name: Main
hosts: all
vars_files:
- config.yml
pre_tasks:
- name: Include playbook configuration.
ansible.builtin.include_vars: "{{ item }}"
with_fileglob:
- "{{ playbook_dir }}/config.yml"
roles:
- role: elliotweiser.osx-command-line-tools
- role: sculley.mac_setup.ohmyzsh
tags: ['ohmyzsh']
- role: sculley.mac_setup.dotfiles
when: configure_dotfiles
tags: ['dotfiles']
- role: sculley.mac_setup.homebrew
tags: ['homebrew']
- role: sculley.mac_setup.mas
when: mas_enabled
tags: ['mas']
- role: sculley.mac_setup.dock
when: configure_dock
tags: ['dock']
- role: sculley.mac_setup.iterm2
when: configure_iterm2
tags: ['iterm2']
- role: sculley.mac_setup.powerlevel10k
when: configure_powerlevel10k
tags: ['powerlevel10k']
- role: sculley.mac_setup.vscode_extensions
when: configure_vscode_extensions
tags: ['vscode_extensions']
tasks:
- name: Run macOS tasks
ansible.builtin.include_tasks: tasks/macos.yml
when: configure_macos
tags: ['macos']
- name: Install extra packages
ansible.builtin.include_tasks: tasks/extra-packages.yml
tags: ['extra-packages']
- name: Run configured post-provision ansible task files.
tags: ['post']
block:
- name: Apply post provision tasks.
ansible.builtin.include_tasks: "{{ outer_item }}"
loop_control:
loop_var: outer_item
with_fileglob: "{{ post_provision_tasks | default(omit) }}"