You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
465 B
YAML

---
- 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
template:
src: nodesource.list
dest: "{{ global_apt_sources_directory }}/nodesource.list"
owner: root
group: root
mode: "u=rw,g=r,o=r"
- name: Install required dependencies
apt:
state: present
name:
- nodejs
update_cache: yes