diff --git a/ansible/roles/jenkins-workspace/tasks/main.yml b/ansible/roles/jenkins-workspace/tasks/main.yml index cec895b4d..79091edd6 100644 --- a/ansible/roles/jenkins-workspace/tasks/main.yml +++ b/ansible/roles/jenkins-workspace/tasks/main.yml @@ -114,13 +114,19 @@ - name: Add nodesource repo apt_repository: - repo: deb https://deb.nodesource.com/node_12.x xenial main + repo: deb https://deb.nodesource.com/node_14.x xenial main state: present +- name: Remove earlier nodesource repos + apt_repository: + repo: deb https://deb.nodesource.com/node_12.x xenial main + state: absent + - name: Install node package: name: nodejs state: present + update_cache: yes - name: Upgrade pip2 pip: