- Debian: 10 through latest
- RHEL: 9 through latest
- Ubuntu: Use the Debian-family play
- name: Install TypeScript toolchain on Debian family
hosts: typescript_debian
become: true
tasks:
- name: Install Node.js and npm
ansible.builtin.apt:
update_cache: true
name:
- nodejs
- npm
state: present
- name: Install TypeScript tooling globally
community.general.npm:
name: "{{ item }}"
global: true
loop:
- typescript
- ts-node
- eslint
- name: Install TypeScript toolchain on RHEL family
hosts: typescript_rhel
become: true
tasks:
- name: Install Node.js and npm
ansible.builtin.dnf:
name:
- nodejs
- npm
state: present
- Add Ubuntu hosts to
typescript_debian.