ibm-mas / ansible-devops

Ansible collection supporting devops for IBM Maximo Application Suite
https://ibm-mas.github.io/ansible-devops/
Eclipse Public License 2.0
48 stars 80 forks source link

[patch] Skip common-services v3 install if v4 is already installed #1302

Closed andrercm closed 2 months ago

andrercm commented 2 months ago

add a check in common_services role in ansible-devops to check if v4 version of cpfs is already installed if it is then skip common_services v3 install this will add a safe guard on our side when we enable cpd 4.8 we don't want common_services role to run when v4 is already installed because if v3 is attempted to be installed in an env with v4 already installed, it will mess things up

Tests via mas install cmd in cli showing it is skipping the v3 install:

image

Ultimately it's easier to skip that directly in the ansible-devops rather than anticipate all possible conditions that we should cover to skip this in mas cli logic.