update conditions on when to set feature compability version to mongo, use separate flag not just if vesrion + prev version are diff
This commit is contained in:
parent
075a62e3eb
commit
9d25d47f22
|
@ -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
|
|
@ -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: >
|
||||
|
|
Loading…
Reference in New Issue