---
- name: Install eslint
  npm:
    name: eslint
    global: yes
    state: "{{ packages_state }}"
  become: yes

- name: Install gems
  gem:
    name: "{{ item }}"
    state: "{{ packages_state }}"
  become: yes
  with_items:
    - tmuxinator

---
- name: Install eslint
  npm:
    name: eslint
    global: yes
    state: "{{ packages_state }}"
  become: yes
  environment:
    PATH: "{{ ansible_env.PATH }}:/usr/local/bin/"

- name: Install gems
  gem:
    name: "{{ item }}"
    state: "{{ packages_state }}"
  become: yes
  with_items:
    - tmuxinator

Fix path for npm installation
Fix path for npm installation
