Skip to content

Commit

Permalink
ansible: update node from 14 to 16 (#3330)
Browse files Browse the repository at this point in the history
  • Loading branch information
MoLow authored Apr 30, 2023
1 parent f724557 commit 018f264
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions ansible/roles/jenkins-workspace/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,18 +130,23 @@

- name: Add nodesource repo
apt_repository:
repo: deb https://deb.nodesource.com/node_14.x {{ release_codename.stdout }} main
repo: deb https://deb.nodesource.com/node_16.x {{ release_codename.stdout }} main
state: present

- name: Remove nodesource 14 repos
apt_repository:
repo: deb https://deb.nodesource.com/node_14.x {{ release_codename.stdout }} main
state: absent

- name: Remove earlier nodesource repos
- name: Remove nodesource 12 repos
apt_repository:
repo: deb https://deb.nodesource.com/node_12.x {{ release_codename.stdout }} main
state: absent

- name: Install node
package:
name: nodejs
state: present
state: latest
update_cache: yes

- name: Upgrade pip3
Expand Down

0 comments on commit 018f264

Please sign in to comment.