forked from geerlingguy/mac-dev-playbook
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.yml
More file actions
42 lines (36 loc) · 1.11 KB
/
main.yml
File metadata and controls
42 lines (36 loc) · 1.11 KB
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
---
- name: Configure host.
hosts: all
vars_files:
- default.config.yml
pre_tasks:
- name: Include playbook configuration.
include_vars: "{{ item }}"
with_fileglob:
- "{{ playbook_dir }}/config.yml"
tags: ['always']
roles:
- role: elliotweiser.osx-command-line-tools
# - role: geerlingguy.mac.homebrew
# tags: ['homebrew']
# - role: geerlingguy.mac.mas
# when: mas_installed_apps or mas_installed_app_ids
# tags: ['mas']
tasks:
- name: Install Homebrew packages and casks
include_role:
name: geerlingguy.mac.homebrew
tags: ['homebrew']
- name: Install Mac App Store apps
include_role:
name: geerlingguy.mac.mas
when: mas_installed_apps or mas_installed_app_ids
tags: ['mas']
- name: Run post-provision task files in a block.
tags: ['post']
block:
- name: Run configured post-provision ansible task files.
include_tasks: "{{ outer_item }}"
loop_control:
loop_var: outer_item
with_fileglob: "{{ post_provision_tasks | default(omit) }}"