Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 6 additions & 13 deletions roles/deploy/tasks/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,19 +68,12 @@
- skip_ansible_lint
notify: restart puma

# Ensure the correct Node version is activated

- name: register node version in new build
slurp:
src: "{{ build_path }}/.node-version"
register: deploy_node_version
become: yes

- name: install node version (and yarn)
include_role:
name: nodenv_install
vars:
node_version: "{{ deploy_node_version['content'] | b64decode | trim }}"
- name: Install required Node version if needed
command: bash -lc "./script/nodenv-install.sh"
args:
chdir: "{{ build_path }}"
register: nodenv_install
changed_when: "'Installed node' in nodenv_install.stderr"

# Install JS dependencies with yarn

Expand Down
5 changes: 0 additions & 5 deletions roles/node/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,3 @@
block: |
export PATH="$HOME/.nodenv/bin:$PATH"
eval "$(nodenv init -)"

# Install node and yarn, ready for deploy!
- name: install node version (and yarn)
include_role:
name: nodenv_install
10 changes: 0 additions & 10 deletions roles/nodenv_install/tasks/main.yaml

This file was deleted.

Loading