ansible-roles/nodejs/tasks/main.yml

41 lines
819 B
YAML
Raw Normal View History

---
- name: APT https transport is enabled
apt:
name: apt-transport-https
state: present
tags:
- system
- packages
2018-04-06 09:19:36 +02:00
- name: NodeJS GPG key is installed
apt_key:
2018-04-06 09:19:36 +02:00
# url: https://deb.nodesource.com/gpgkey/nodesource.gpg.key
data: "{{ lookup('file', 'nodesource.gpg.key') }}"
tags:
- system
- packages
- nodejs
2018-04-06 09:19:36 +02:00
- name: NodeJS sources list ({{ nodejs_apt_version }}) is available
apt_repository:
2017-03-17 09:55:39 +01:00
repo: "deb https://deb.nodesource.com/{{ nodejs_apt_version }} {{ ansible_distribution_release }} main"
filename: nodesource
update_cache: yes
state: present
tags:
- system
- packages
- nodejs
2018-04-06 09:19:36 +02:00
- name: NodeJS is installed
apt:
name: nodejs
state: present
tags:
- packages
- nodejs
2018-04-06 09:19:36 +02:00
- include: yarn.yml
when: nodejs_install_yarn