ansible-role-nodejs/tasks/main.yml

11 lines
233 B
YAML

---
- name: Install yarn (Debian)
import_tasks: Debian.yml
when: ansible_os_family == 'Debian'
- name: Install yarn (non-Debian)
ansible.builtin.package:
name: yarn
state: present
when: ansible_os_family != 'Debian'