mirror of
https://github.com/geerlingguy/mac-dev-playbook
synced 2024-11-24 21:03:26 +00:00
normalize version to present and re-order
This commit is contained in:
parent
09c6732928
commit
8ec016b7c8
1 changed files with 4 additions and 4 deletions
|
@ -10,8 +10,8 @@
|
|||
- name: Install global NPM packages.
|
||||
npm:
|
||||
name: "{{ item.name | default(item) }}"
|
||||
version: "{{ item.version | default('latest') }}"
|
||||
state: "{{ item.state | default('present') }}"
|
||||
version: "{{ item.version | default(omit) }}"
|
||||
global: yes
|
||||
executable: "{{ item.executable | default(omit) }}"
|
||||
with_items: "{{ npm_packages }}"
|
||||
|
@ -19,16 +19,16 @@
|
|||
- name: Install global Pip packages.
|
||||
pip:
|
||||
name: "{{ item.name | default(item) }}"
|
||||
state: "{{ item.state | default('present') }}"
|
||||
version: "{{ item.version | default(omit) }}"
|
||||
state: "{{ item.state | default('latest') }}"
|
||||
executable: "{{ item.executable | default(omit) }}"
|
||||
with_items: "{{ pip_packages }}"
|
||||
|
||||
- name: Install global Ruby gems.
|
||||
gem:
|
||||
name: "{{ item.name | default(item) }}"
|
||||
state: "{{ item.state | default('present') }}"
|
||||
version: "{{ item.version | default(omit) }}"
|
||||
state: "{{ item.state | default('latest') }}"
|
||||
user_install: false
|
||||
user_install: no
|
||||
executable: "{{ item.executable | default(omit) }}"
|
||||
with_items: "{{ gem_packages }}"
|
||||
|
|
Loading…
Reference in a new issue