Update to 2022-03-04 11:00

master
Daniel Berteaud 3 years ago
parent b5873d9a2e
commit b1efa0922e
  1. 4
      roles/appsmith/defaults/main.yml
  2. 35
      roles/appsmith/tasks/install.yml
  3. 3
      roles/appsmith/templates/config_ssh.j2

@ -1,11 +1,11 @@
---
# Version to deploy
appsmith_version: 1.6.8
appsmith_version: 1.6.13
# URL of the source archive
appsmith_archive_url: https://github.com/appsmithorg/appsmith/archive/v{{ appsmith_version }}.tar.gz
# sha1sum of the archive
appsmith_archive_sha1: d6b693b32460532c86ad325acf9d39b9bccff7e5
appsmith_archive_sha1: aaa0a5e1814fbbf14526967e7968810a46bdb4a2
# Root directory where appsmith will be installed
appsmith_root_dir: /opt/appsmith

@ -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:

@ -0,0 +1,3 @@
Host gitea.{{ ansible_domain }}
User gitea
Port 3222
Loading…
Cancel
Save