mirror of
https://github.com/geerlingguy/mac-dev-playbook
synced 2024-11-25 05:10:19 +00:00
fixed it the way GG wants it fixed
This commit is contained in:
parent
be8b356174
commit
34cc100e7c
2 changed files with 40 additions and 39 deletions
16
main.yml
16
main.yml
|
@ -22,23 +22,27 @@
|
|||
tags: ['mas']
|
||||
|
||||
tasks:
|
||||
- include_tasks: tasks/ansible-setup.yml
|
||||
- import_tasks: tasks/ansible-setup.yml
|
||||
tags: ['setup']
|
||||
|
||||
- include_tasks: tasks/sudoers.yml
|
||||
- import_tasks: tasks/sudoers.yml
|
||||
when: configure_sudoers
|
||||
tags: ['sudoers']
|
||||
|
||||
- include_tasks: tasks/terminal.yml
|
||||
- import_tasks: tasks/terminal.yml
|
||||
when: configure_terminal
|
||||
tags: ['terminal']
|
||||
|
||||
- include_tasks: tasks/osx.yml
|
||||
- import_tasks: tasks/osx.yml
|
||||
when: configure_osx
|
||||
tags: ['osx']
|
||||
|
||||
- include_tasks: tasks/extra-packages.yml
|
||||
- import_tasks: tasks/extra-packages.yml
|
||||
tags: ['extra-packages']
|
||||
|
||||
- name: Run configured post-provision ansible task files.
|
||||
include_tasks: "{{ outer_item }}"
|
||||
import_tasks: "{{ outer_item }}"
|
||||
loop_control:
|
||||
loop_var: outer_item
|
||||
with_fileglob: "{{ post_provision_tasks|default(omit) }}"
|
||||
tags: ['post']
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
---
|
||||
- name: Ensure extra packages
|
||||
block:
|
||||
- name: Install global Composer packages.
|
||||
- name: Install global Composer packages.
|
||||
composer:
|
||||
command: "{{ (item.state | default('present') == 'absent') | ternary('remove', 'require') }}"
|
||||
arguments: "{{ item.name | default(item) }} {{ item.version | default('@stable') }}"
|
||||
|
@ -9,7 +7,7 @@
|
|||
working_dir: "{{ lookup('env', 'COMPOSER_HOME') | default('~/.composer', true) }}"
|
||||
loop: "{{ composer_packages }}"
|
||||
|
||||
- name: Install global NPM packages.
|
||||
- name: Install global NPM packages.
|
||||
npm:
|
||||
name: "{{ item.name | default(item) }}"
|
||||
state: "{{ item.state | default('present') }}"
|
||||
|
@ -18,7 +16,7 @@
|
|||
executable: "{{ item.executable | default(omit) }}"
|
||||
loop: "{{ npm_packages }}"
|
||||
|
||||
- name: Install global Pip packages.
|
||||
- name: Install global Pip packages.
|
||||
pip:
|
||||
name: "{{ item.name | default(item) }}"
|
||||
state: "{{ item.state | default('present') }}"
|
||||
|
@ -26,7 +24,7 @@
|
|||
executable: "{{ item.executable | default(omit) }}"
|
||||
loop: "{{ pip_packages }}"
|
||||
|
||||
- name: Install global Ruby gems.
|
||||
- name: Install global Ruby gems.
|
||||
gem:
|
||||
name: "{{ item.name | default(item) }}"
|
||||
state: "{{ item.state | default('present') }}"
|
||||
|
@ -34,4 +32,3 @@
|
|||
user_install: false
|
||||
executable: "{{ item.executable | default(omit) }}"
|
||||
loop: "{{ gem_packages }}"
|
||||
tags: ['extra-packages']
|
||||
|
|
Loading…
Reference in a new issue