2014-02-13 03:47:18 +00:00
|
|
|
---
|
2016-09-26 03:50:10 +00:00
|
|
|
- hosts: all
|
2014-02-13 04:33:32 +00:00
|
|
|
|
2014-10-03 04:07:02 +00:00
|
|
|
vars_files:
|
2016-11-28 18:07:42 +00:00
|
|
|
- default.config.yml
|
|
|
|
|
|
|
|
pre_tasks:
|
2021-02-18 16:26:12 +00:00
|
|
|
- name: Include playbook configuration.
|
|
|
|
include_vars: "{{ item }}"
|
2016-11-28 18:07:42 +00:00
|
|
|
with_fileglob:
|
2018-09-10 19:59:29 +00:00
|
|
|
- "{{ playbook_dir }}/config.yml"
|
2017-05-31 15:39:42 +00:00
|
|
|
tags: ['always']
|
2014-10-03 04:07:02 +00:00
|
|
|
|
|
|
|
roles:
|
2021-05-31 03:25:53 +00:00
|
|
|
- role: elliotweiser.osx-command-line-tools
|
|
|
|
- role: geerlingguy.mac.homebrew
|
2017-05-31 15:39:42 +00:00
|
|
|
tags: ['homebrew']
|
|
|
|
- role: geerlingguy.dotfiles
|
2017-06-05 03:29:43 +00:00
|
|
|
when: configure_dotfiles
|
2017-05-31 15:39:42 +00:00
|
|
|
tags: ['dotfiles']
|
2021-05-31 03:25:53 +00:00
|
|
|
- role: geerlingguy.mac.mas
|
2021-05-27 16:31:58 +00:00
|
|
|
when: mas_installed_apps or mas_installed_app_ids
|
2017-05-31 15:39:42 +00:00
|
|
|
tags: ['mas']
|
2021-05-31 03:25:53 +00:00
|
|
|
- role: geerlingguy.mac.dock
|
|
|
|
when: configure_dock
|
|
|
|
tags: ['dock']
|
2014-02-13 04:33:32 +00:00
|
|
|
|
|
|
|
tasks:
|
2021-04-12 15:43:47 +00:00
|
|
|
- import_tasks: tasks/ansible-setup.yml
|
|
|
|
tags: ['setup']
|
2015-01-03 05:03:17 +00:00
|
|
|
|
2021-04-12 15:43:47 +00:00
|
|
|
- import_tasks: tasks/sudoers.yml
|
2017-02-01 17:52:51 +00:00
|
|
|
when: configure_sudoers
|
2021-04-12 15:43:47 +00:00
|
|
|
tags: ['sudoers']
|
2017-02-01 17:52:51 +00:00
|
|
|
|
2021-04-12 15:43:47 +00:00
|
|
|
- import_tasks: tasks/terminal.yml
|
2017-02-01 17:52:51 +00:00
|
|
|
when: configure_terminal
|
2021-04-12 15:43:47 +00:00
|
|
|
tags: ['terminal']
|
2017-02-01 17:52:51 +00:00
|
|
|
|
2021-04-12 15:43:47 +00:00
|
|
|
- import_tasks: tasks/osx.yml
|
2016-12-30 16:54:14 +00:00
|
|
|
when: configure_osx
|
2017-05-31 15:39:42 +00:00
|
|
|
tags: ['osx']
|
2017-05-31 15:07:42 +00:00
|
|
|
|
2021-04-12 15:43:47 +00:00
|
|
|
- import_tasks: tasks/extra-packages.yml
|
2017-06-02 15:58:06 +00:00
|
|
|
tags: ['extra-packages']
|
|
|
|
|
2021-05-29 04:13:06 +00:00
|
|
|
- import_tasks: tasks/sublime-text.yml
|
|
|
|
when: configure_sublime
|
|
|
|
tags: ['sublime-text']
|
|
|
|
|
2017-05-31 15:07:42 +00:00
|
|
|
- name: Run configured post-provision ansible task files.
|
2021-04-12 17:13:23 +00:00
|
|
|
include_tasks: "{{ outer_item }}"
|
2017-05-31 15:07:42 +00:00
|
|
|
loop_control:
|
|
|
|
loop_var: outer_item
|
|
|
|
with_fileglob: "{{ post_provision_tasks|default(omit) }}"
|
2021-04-12 15:43:47 +00:00
|
|
|
tags: ['post']
|