diff --git a/roles/appsmith/defaults/main.yml b/roles/appsmith/defaults/main.yml index e0f2e53..36a7ec5 100644 --- a/roles/appsmith/defaults/main.yml +++ b/roles/appsmith/defaults/main.yml @@ -1,11 +1,11 @@ --- # Version to deploy -appsmith_version: 1.3.5.1 +appsmith_version: 1.4 # 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: a726767f37cbe6ddcbc95d4857cb1861a6d6b9ab +appsmith_archive_sha1: 968129f5af813a85087ab096055c740f90318395 # Root directory where appsmith will be installed appsmith_root_dir: /opt/appsmith diff --git a/roles/appsmith/tasks/archive_pre.yml b/roles/appsmith/tasks/archive_pre.yml index 50102b0..5f93423 100644 --- a/roles/appsmith/tasks/archive_pre.yml +++ b/roles/appsmith/tasks/archive_pre.yml @@ -21,5 +21,13 @@ tags: appsmith - name: Dump mongo database - command: mongodump --uri {{ appsmith_mongo_url }} --out {{ appsmith_root_dir }}/archives/{{ appsmith_current_version }}/ + shell: | + mongodump --quiet \ + --out {{ appsmith_root_dir }}/archives/{{ appsmith_current_version }}/ \ + --uri \ + {% if appsmith_mongo_pass is defined and appsmith_mongo_pass != False %} + {{ appsmith_mongo_url | urlsplit('scheme') }}://{{ appsmith_mongo_user }}:{{ appsmith_mongo_pass | urlencode | regex_replace('/','%2F') }}@{{ appsmith_mongo_url | urlsplit('hostname') }}{% if appsmith_mongo_url | urlsplit('port') %}:{{ appsmith_mongo_url | urlsplit('port') }}{% endif %}{{ appsmith_mongo_url | urlsplit('path') }}?{{ appsmith_mongo_url | urlsplit('query') }} + {% else %} + {{ appsmith_mongo_url }} + {% endif %} tags: appsmith