-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: managed node installation fixes contentful backup (#467)
* fix: managed node installation fixes contentful backup * chore: removed global yarn install 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. * chore: referenced node removal pr
- Loading branch information
1 parent
08aa7c1
commit 779a5d5
Showing
10 changed files
with
57 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--- | ||
|
||
backups_node_version: "22" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
- name: "Install nvm" | ||
ansible.builtin.git: | ||
repo: "https://github.com/nvm-sh/nvm.git" | ||
version: "{{ nvm.version }}" | ||
dest: "{{ nvm.directory }}" | ||
recursive: false # cloning submodules fails, but they are purely for testing | ||
diff: false | ||
|
||
- name: "Test nvm install" | ||
ansible.builtin.shell: "source {{ nvm.script }} && command -v nvm" | ||
register: "nvm_command" | ||
args: | ||
executable: "/bin/bash" | ||
changed_when: false | ||
|
||
- name: "Assert that nvm is installed correctly" | ||
ansible.builtin.assert: | ||
that: "nvm_command.stdout == 'nvm'" | ||
|
||
- name: "Create nvm group" | ||
ansible.builtin.group: | ||
name: "nvm" | ||
|
||
- name: "Allow nvm group to manage nodejs installs" | ||
ansible.builtin.file: | ||
path: "{{ nvm.directory }}" | ||
group: "nvm" | ||
mode: "0774" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters