diff --git a/defaults/main.yml b/defaults/main.yml index 12fcc6e..6aa5e86 100755 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -6,10 +6,13 @@ harden_os: true rc_version: 4.8.1 # WIP to get to 5.0 -mongo_version: 4.4 +mongo_version: 4.2 -# WIP to get to 5.0 - if same as mongo_version or false, feature compatibility version will not be set +# WIP to get to 5.0 prev_mongo_version: 4.2 +# if true set feature compability version to prev_mongo_version +set_feature_compat_version: true + # backup by default - saves to /home/{{ main_user }}/rocketchat/data/dump/2015-07-09T16:59:26Z" (iso8601 of current date) backup_db: true \ No newline at end of file diff --git a/tasks/rocketchat.yml b/tasks/rocketchat.yml index 063e777..51203f5 100644 --- a/tasks/rocketchat.yml +++ b/tasks/rocketchat.yml @@ -123,7 +123,7 @@ tags: mongodump - name: Set feature compability version if we are upgrading mongoDB - when: prev_mongo_version and prev_mongo_version != mongo_version + when: prev_mongo_version and set_feature_compat_version community.docker.docker_container_exec: container: rocketchat_mongo_1 command: >