I've created a custom module based on the description in the Ansible docs.
The docs explain to fail the module with module.fail_json(). Instead of failing and printing an error message, I want to output just a warning message without failing. How can I do that?
There is the
warn()method to do that. For examplewhich prints out:
For general printout the Display class can be used.