add executable option for nvm/pip3/rvm

This commit is contained in:
Oskar Schöldström 2017-06-04 17:07:33 -05:00
parent b70e5a1c23
commit 09c6732928

View file

@ -13,6 +13,7 @@
version: "{{ item.version | default('latest') }}" version: "{{ item.version | default('latest') }}"
state: "{{ item.state | default('present') }}" state: "{{ item.state | default('present') }}"
global: yes global: yes
executable: "{{ item.executable | default(omit) }}"
with_items: "{{ npm_packages }}" with_items: "{{ npm_packages }}"
- name: Install global Pip packages. - name: Install global Pip packages.
@ -20,6 +21,7 @@
name: "{{ item.name | default(item) }}" name: "{{ item.name | default(item) }}"
version: "{{ item.version | default(omit) }}" version: "{{ item.version | default(omit) }}"
state: "{{ item.state | default('latest') }}" state: "{{ item.state | default('latest') }}"
executable: "{{ item.executable | default(omit) }}"
with_items: "{{ pip_packages }}" with_items: "{{ pip_packages }}"
- name: Install global Ruby gems. - name: Install global Ruby gems.
@ -28,4 +30,5 @@
version: "{{ item.version | default(omit) }}" version: "{{ item.version | default(omit) }}"
state: "{{ item.state | default('latest') }}" state: "{{ item.state | default('latest') }}"
user_install: false user_install: false
executable: "{{ item.executable | default(omit) }}"
with_items: "{{ gem_packages }}" with_items: "{{ gem_packages }}"