ziion-tools/ansible/roles/common/tasks/install-node.yml
2022-10-27 18:46:29 -07:00

35 lines
632 B
YAML

- name: Install curl
become_user: root
become: true
apt:
state: present
update_cache: yes
cache_valid_time: 604800
pkg:
- curl
- name: Remove node
become_user: root
become: true
apt:
state: absent
update_cache: yes
cache_valid_time: 604800
pkg:
- nodejs
- name: add node apt repository
become_user: root
become: true
ansible.builtin.shell: "curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash - "
- name: Install node
become_user: root
become: true
apt:
state: present
update_cache: yes
cache_valid_time: 604800
pkg:
- nodejs