normalize version to present and re-order

This commit is contained in:
Oskar Schöldström 2017-06-04 17:08:05 -05:00
parent 09c6732928
commit 8ec016b7c8

View file

@ -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 }}"