mac-dev-playbook/main.yml

57 lines
1.4 KiB
YAML
Raw Normal View History

---
- hosts: all
vars_files:
- default.config.yml
pre_tasks:
- name: Include playbook configuration.
include_vars: "{{ item }}"
with_fileglob:
- "{{ playbook_dir }}/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:
2021-04-12 15:43:47 +00:00
- import_tasks: tasks/ansible-setup.yml
tags: ['setup']
2021-04-12 15:43:47 +00:00
- import_tasks: tasks/sudoers.yml
when: configure_sudoers
2021-04-12 15:43:47 +00:00
tags: ['sudoers']
2021-04-12 15:43:47 +00:00
- import_tasks: tasks/terminal.yml
when: configure_terminal
2021-04-12 15:43:47 +00:00
tags: ['terminal']
2021-04-12 15:43:47 +00:00
- import_tasks: tasks/osx.yml
when: configure_osx
tags: ['osx']
2017-05-31 15:07:42 +00:00
2021-04-12 15:43:47 +00:00
- import_tasks: tasks/extra-packages.yml
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-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']