|
|
|
@ -44,6 +44,29 @@ |
|
|
|
|
when: appsmith_install_mode == 'upgrade' |
|
|
|
|
tags: appsmith |
|
|
|
|
|
|
|
|
|
- name: Install N |
|
|
|
|
npm: |
|
|
|
|
name: n |
|
|
|
|
global: yes |
|
|
|
|
state: present |
|
|
|
|
tags: appsmith |
|
|
|
|
|
|
|
|
|
- name: Install node specific version |
|
|
|
|
command: n 14.15.4 |
|
|
|
|
tags: appsmith |
|
|
|
|
|
|
|
|
|
- name: Move old NodeJS |
|
|
|
|
command: mv /usr/bin/node /usr/bin/node-10 |
|
|
|
|
ignore_errors: yes |
|
|
|
|
tags: appsmith |
|
|
|
|
|
|
|
|
|
- name: Move new NodeJS as default |
|
|
|
|
file: |
|
|
|
|
src: /usr/local/bin/node |
|
|
|
|
dest: /usr/bin/node |
|
|
|
|
state: link |
|
|
|
|
tags: appsmith |
|
|
|
|
|
|
|
|
|
- when: appsmith_install_mode != 'none' |
|
|
|
|
block: |
|
|
|
|
|
|
|
|
@ -93,7 +116,7 @@ |
|
|
|
|
path: "{{ appsmith_root_dir }}/src/app/client" |
|
|
|
|
|
|
|
|
|
- name: Install NodeJS dependencies |
|
|
|
|
command: ./node_modules/yarn/bin/yarn install --ignore-engines |
|
|
|
|
command: ./node_modules/yarn/bin/yarn install |
|
|
|
|
args: |
|
|
|
|
chdir: "{{ appsmith_root_dir }}/src/app/client" |
|
|
|
|
|
|
|
|
@ -109,7 +132,7 @@ |
|
|
|
|
|
|
|
|
|
- name: Copy the client |
|
|
|
|
copy: |
|
|
|
|
src: "{{ appsmith_root_dir }}/src/app/client/build" |
|
|
|
|
src: "{{ appsmith_root_dir }}/src/app/client/build/" |
|
|
|
|
dest: "{{ appsmith_root_dir }}/client" |
|
|
|
|
remote_src: True |
|
|
|
|
|
|
|
|
@ -138,6 +161,14 @@ |
|
|
|
|
notify: restart appsmith-server |
|
|
|
|
tags: appsmith |
|
|
|
|
|
|
|
|
|
- name: Install ssh configuration |
|
|
|
|
template: |
|
|
|
|
src: ssh_config.j2 |
|
|
|
|
dest: "{{ appsmith_root_dir }}/.ssh/config" |
|
|
|
|
mode: 600 |
|
|
|
|
owner: "{{ appsmith_user }}" |
|
|
|
|
tags: appsmith |
|
|
|
|
|
|
|
|
|
- name: Install pre/post backup hoooks |
|
|
|
|
template: src={{ item }}-backup.sh.j2 dest=/etc/backup/{{ item }}.d/appsmith mode=700 |
|
|
|
|
loop: |
|
|
|
|