add common dependencies that need their own repositories
This commit is contained in:
parent
923fd9b9d4
commit
64597a7d69
24
ansible/roles/common/tasks/install-node.yml
Normal file
24
ansible/roles/common/tasks/install-node.yml
Normal file
|
@ -0,0 +1,24 @@
|
|||
- 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
|
3
ansible/roles/common/tasks/main.yml
Normal file
3
ansible/roles/common/tasks/main.yml
Normal file
|
@ -0,0 +1,3 @@
|
|||
- import_tasks: install-node.yml
|
||||
tags:
|
||||
- install-node
|
Loading…
Reference in a new issue