<commit_before>---
#
# IOJS Tasks
#
# IOJS is no longer available via NVM, but can be downloaded on the web.
# IOJS was a NodeJS compatible platform based upon an earlier NodeJS release.
# IOJS was merged into NodeJS in version 4, and is in every version this role installs.
#

- name: "IOJS | Get versions"
  become: yes
  become_user: "{{ fubarhouse_user }}"
  shell: "ivm ls"
  register: iojs_available_versions
  changed_when: false

- name: "IOJS | Check for local default install"
  become: yes
  become_user: "{{ fubarhouse_user }}"
  stat:
    path: "/usr/local/ivm/versions/{{ node_version }}"
  register: fubarhouse_npm_io_install_result
  changed_when: false
  failed_when: false
  when: '"{{ node_version }}" in iojs_available_versions.stdout'

- name: "IOJS | Check for all local installs"
  become: yes
  become_user: "{{ fubarhouse_user }}"
  stat:
    path: "/usr/local/ivm/versions/{{ item }}"
  register: fubarhouse_npm_io_install_results
  changed_when: false<commit_msg>change reference to binary to expected location<commit_after>---
#
# IOJS Tasks
#
# IOJS is no longer available via NVM, but can be downloaded on the web.
# IOJS was a NodeJS compatible platform based upon an earlier NodeJS release.
# IOJS was merged into NodeJS in version 4, and is in every version this role installs.
#

- name: "IOJS | Get versions"
  become: yes
  become_user: "{{ fubarhouse_user }}"
  shell: "/usr/local/bin/ivm ls"
  register: iojs_available_versions
  changed_when: false

- name: "IOJS | Check for local default install"
  become: yes
  become_user: "{{ fubarhouse_user }}"
  stat:
    path: "/usr/local/ivm/versions/{{ node_version }}"
  register: fubarhouse_npm_io_install_result
  changed_when: false
  failed_when: false
  when: '"{{ node_version }}" in iojs_available_versions.stdout'

- name: "IOJS | Check for all local installs"
  become: yes
  become_user: "{{ fubarhouse_user }}"
  stat:
    path: "/usr/local/ivm/versions/{{ item }}"
  register: fubarhouse_npm_io_install_results
  changed_when: false
{'fraction_non_alphanumeric': 0.10349926071956629, 'fraction_numerical': 0.0009857072449482504, 'mean_word_length': 4.1653944020356235, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7436690', 'n_tokens_mistral': 691, 'n_tokens_neox': 692, 'n_words': 213}