|
|
|
@ -1,24 +1,11 @@
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
# TODO Role for nodejs application
|
|
|
|
|
|
|
|
|
|
- name: Add key for source for nodejs
|
|
|
|
|
apt_key:
|
|
|
|
|
id: 9FD3B784BC1C6FC31A8A0A1C1655A0AB68576280
|
|
|
|
|
url: https://deb.nodesource.com/gpgkey/nodesource.gpg.key
|
|
|
|
|
|
|
|
|
|
- name: Add source for nodejs
|
|
|
|
|
apt_repository:
|
|
|
|
|
repo: "deb https://deb.nodesource.com/node_11.x {{ ansible_distribution_release }} main"
|
|
|
|
|
filename: nodesource
|
|
|
|
|
|
|
|
|
|
- name: Install required dependencies
|
|
|
|
|
apt:
|
|
|
|
|
state: present
|
|
|
|
|
name:
|
|
|
|
|
- git
|
|
|
|
|
- nginx-extras
|
|
|
|
|
- nodejs
|
|
|
|
|
- openjdk-8-jdk-headless
|
|
|
|
|
update_cache: yes
|
|
|
|
|
|
|
|
|
|