mirror of
https://github.com/geerlingguy/mac-dev-playbook
synced 2024-11-22 03:43:06 +00:00
5c7857bc89
instead of [import_tasks](https://docs.ansible.com/ansible/2.4/import_tasks_module.html#options) > Any loops, conditionals and most other keywords will be applied > to the included tasks
44 lines
1,001 B
YAML
44 lines
1,001 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
|
|
when: configure_dotfiles
|
|
tags: ['dotfiles']
|
|
- role: geerlingguy.mas
|
|
when: mas_installed_apps
|
|
tags: ['mas']
|
|
|
|
tasks:
|
|
- include_tasks: tasks/ansible-setup.yml
|
|
|
|
- include_tasks: tasks/sudoers.yml
|
|
when: configure_sudoers
|
|
|
|
- include_tasks: tasks/terminal.yml
|
|
when: configure_terminal
|
|
|
|
- include_tasks: tasks/osx.yml
|
|
when: configure_osx
|
|
tags: ['osx']
|
|
|
|
- include_tasks: tasks/extra-packages.yml
|
|
tags: ['extra-packages']
|
|
|
|
- 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) }}"
|