Ensure that OS package conflicts can be handled properly#194
Conversation
bb8c6ed to
0777f36
Compare
|
This seems very complex. In another collection I use the following approach. This task runs at the very start of the role: In the This way I can define exactly what package will be installed on what operating system. I admit this will not handle conflicts but I'm also not sure that this should be done in this role at all, but rather it should be left to the user of the role. |
I perfectly agree and I am also not very convinced of the solution here. I needed a running one quite quickly though.
I understand the point but I do not see how this would help here - in the scenario here I cannot determine based on the distribution if |
72f113f to
beca052
Compare
|
Oh yeah I had the same problem with Rocky, and just added a curl-minimal variable in #197 |
|
closing in favor of #197 |
With #191 a conditional was introduced to not fail if
curl-minimalis installed rather than curl in case of almalinux:9 docker image:In (at least) almalinux 9 both variants is possible.
This PR extends the possibility for the
nomad_os_packagesto declare potential conflicts and have them handled accordingly:Execution:
ansible.builtin.package_factshandleis not set toskip