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:
BSounder
2022-07-07 22:15:49 -07:00
parent 075a62e3eb
commit 9d25d47f22
2 changed files with 6 additions and 3 deletions

View File

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