UtrechtUniversity / researchcloud-items

Installation scripts for SURF ResearchCloud catalog components
https://utrechtuniversity.github.io/researchcloud-items/
GNU General Public License v3.0
7 stars 4 forks source link

Debug using security updates and other roles in a single component #156

Closed dometto closed 2 months ago

dometto commented 3 months ago

I was trying to use the UU Provisioning component for all common tasks, including:

However, it turns out that when we use the security_updates role in a playbook that also contains further roles, these further roles throw errors. For instance, fact_regular_users was throwing this error:

fatal: [localhost]: FAILED! => {\"msg\": \"You need to install \\\"jmespath\\\" prior to running json_query filter\"}

...despite the fact that the role does install jmespath first.

Similarly, fact_workspace_info was throwing errors about the fact that python3-apt was not installed, when in fact it is.

My hypothesis is that the installation of the security updates is still going on when the next role is called, and that the lock on the apt database is causing ansible modules to fail, which is mistakenly being interpreted as the absence of a required dependency.

For now I've disabled security updates in UU Provisioning (we can still use the separate Security Updates component).