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:
|
2017-05-31 15:39:42 +00:00
|
|
|
- role: geerlingguy.homebrew
|
|
|
|
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']
|
|
|
|
- role: geerlingguy.mas
|
2017-03-12 21:41:45 +00:00
|
|
|
when: mas_installed_apps
|
2017-05-31 15:39:42 +00:00
|
|
|
tags: ['mas']
|
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-04-07 11:26:28 +00:00
|
|
|
- name: Install global Ruby gems.
|
|
|
|
gem:
|
|
|
|
name: "{{ item.name | default(item) }}"
|
|
|
|
state: "{{ item.state | default('present') }}"
|
|
|
|
version: "{{ item.version | default(omit) }}"
|
|
|
|
user_install: false
|
|
|
|
executable: "{{ item.executable | default(omit) }}"
|
|
|
|
loop: "{{ gem_packages }}"
|
2017-06-02 15:58:06 +00:00
|
|
|
|
2017-05-31 15:07:42 +00:00
|
|
|
- name: Run configured post-provision ansible task files.
|
2021-04-12 15:43:47 +00:00
|
|
|
import_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']
|