ansible-role-nodejs/tasks/main.yml

19 lines
370 B
YAML

---
- name: Install npm and yarn (Debian)
import_tasks: Debian.yml
when: ansible_os_family == 'Debian'
- name: Install npm and yarn (non-Debian)
ansible.builtin.package:
name:
- nodejs
- yarn
state: present
when: ansible_os_family != 'Debian'
- name: Install 'n' package
ansible.builtin.npm:
name: n
global: yes
when: n_enabled