mirror of
https://github.com/geerlingguy/mac-dev-playbook
synced 2024-11-22 03:43:06 +00:00
1af9802b9b
Issue #36: Add option to install npm/composer/pip/gem packages
44 lines
965 B
YAML
44 lines
965 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/ansible-setup.yml
|
|
|
|
- include: tasks/sudoers.yml
|
|
when: configure_sudoers
|
|
|
|
- include: tasks/terminal.yml
|
|
when: configure_terminal
|
|
|
|
- include: tasks/osx.yml
|
|
when: configure_osx
|
|
tags: ['osx']
|
|
|
|
- include: tasks/extra-packages.yml
|
|
tags: ['extra-packages']
|
|
|
|
- name: Run configured post-provision ansible task files.
|
|
include: "{{ outer_item }}"
|
|
loop_control:
|
|
loop_var: outer_item
|
|
with_fileglob: "{{ post_provision_tasks|default(omit) }}"
|