Skip to content

Commit

Permalink
chore: removed global yarn install
Browse files Browse the repository at this point in the history
In the previous commit, we removed the global Nodejs install, replaced by a
global nvm install. Yarn should also be installed locally and not globally.
  • Loading branch information
SilasPeters committed Aug 19, 2024
1 parent 44e435f commit 1adb1f4
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 20 deletions.
4 changes: 2 additions & 2 deletions ansible/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
tags: "docker"
- role: "databases"
tags: "databases"
- role: "node"
tags: "node"
- role: "nvm"
tags: "nvm"
- role: "backups"
tags: "backups"
- role: "nginx"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,4 @@
---
- name: "Add apt key for yarn repository"
ansible.builtin.apt_key:
url: "https://dl.yarnpkg.com/debian/pubkey.gpg"
state: "present"

- name: "Add yarn repository"
ansible.builtin.apt_repository:
repo: "deb https://dl.yarnpkg.com/debian/ stable main"
state: "present"

- name: "install yarn"
ansible.builtin.apt:
name: "yarn"
state: "present"

- name: "Install nvm"
ansible.builtin.git:
repo: "https://github.com/nvm-sh/nvm.git"
Expand Down Expand Up @@ -42,5 +27,3 @@
path: "{{ nvm.directory }}"
group: "nvm"
mode: "0774"

# TODO yarn komt om de hoek kijken. Verwijderen? (rg -C 2 yarn)
1 change: 0 additions & 1 deletion ansible/roles/packages/templates/50unattended-upgrades.j2
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ Unattended-Upgrade::Allowed-Origins {
"${distro_id} stable";
"${distro_id} ${distro_codename}-updates";
"LP-PPA-certbot-certbot:${distro_codename}";
"yarn:stable";
{% endif %}
};

Expand Down

0 comments on commit 1adb1f4

Please sign in to comment.