mac-dev-playbook/main.yml
Ken Sonoda 5c7857bc89 Fix syntax warnings
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
2017-12-28 10:11:17 +09:00

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) }}"