mirror of
https://github.com/geerlingguy/mac-dev-playbook
synced 2024-11-25 05:10:19 +00:00
40 lines
862 B
YAML
40 lines
862 B
YAML
---
|
|
- hosts: all
|
|
connection: local
|
|
|
|
vars_files:
|
|
- default.config.yml
|
|
|
|
pre_tasks:
|
|
- include_vars: "{{ item }}"
|
|
with_fileglob:
|
|
- ../config.yml
|
|
tags: ['always']
|
|
|
|
roles:
|
|
- role: geerlingguy.homebrew
|
|
tags: ['homebrew']
|
|
- role: geerlingguy.dotfiles
|
|
tags: ['dotfiles']
|
|
- role: geerlingguy.mas
|
|
when: mas_installed_apps
|
|
tags: ['mas']
|
|
|
|
tasks:
|
|
- include: tasks/ansible-setup.yml
|
|
|
|
- include: tasks/sudoers.yml
|
|
when: configure_sudoers
|
|
|
|
- include: tasks/terminal.yml
|
|
when: configure_terminal
|
|
|
|
- include: tasks/osx.yml
|
|
when: configure_osx
|
|
tags: ['osx']
|
|
|
|
- name: Run configured post-provision ansible task files.
|
|
include: "{{ outer_item }}"
|
|
loop_control:
|
|
loop_var: outer_item
|
|
with_fileglob: "{{ post_provision_tasks|default(omit) }}"
|