univention / ansible-modules

Ansible Modules for UCS
GNU General Public License v3.0
11 stars 6 forks source link

univention.ucs_modules.univention_app: self-service does not get installed if self-service-backend is installed #16

Open s3lph opened 11 months ago

s3lph commented 11 months ago

The univention.ucs_modules.univention_app module tries to check whether an app is already installed: https://github.com/univention/ansible-modules/blob/ffc300ff6e763bf5ecf7542a61d7a99066680cbe/plugins/modules/univention_app.py#L269

On one of our systems, INSTALLED_APPS_LIST looks like this: ["ox-connector=2.2.7", "self-service-backend=5.0"].

Since this line of code performs a string-in-string comparison against the entries in INSTALLED_APPS_LIST, the app self-service will be considered already installed, though it's actually the app self-service-backend that is installed.