-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
verify lxml availability #2
Comments
If lxml is not installed, it doesn't use it, however it still needs it ;-) |
We could verify if lxml is installed. |
lxml is required only on the server side not on the target. So its installation should be part of the (one time) ansible installation on the server and not part of the Storc module. If a module should install prerequisites, then the maven_artefact module should install its prerequisites. maven_artefact however chooses to: If that fails we terminate with an error message that lxml is required. However, the prerequisite lxml should be part of the documentation. |
Ah, I believe I got it. The playbook delegates the execution of maven_artefact to the machine executing the playbook via As such we could define it as a prerequisite in the documentation - I agree. What would be the downside of adding functionality and robustness to the role via a self-healing action such as my proposed approach? e.g. via |
There are the following downsides:
What you could do is to write a separate playbook called e.g. fix-prerequisites where you check (and fix missing) prerequisites. This would be run with root privileges and the administrator expects it to change the server installation. |
the maven_artefact module uses lxml without verifying if lxml is installed or not.
If lxml is not installed the playbook terminates with
The error was: ModuleNotFoundError: No module named 'lxml'
The text was updated successfully, but these errors were encountered: