Questions
Answer the following questions to test your knowledge of this chapter:
- Which command line can be passed down as a parameter to a module?
ansible dbservers -m command "/bin/echo '
hello modules'"
ansible dbservers -m command -d "/bin/echo '
hello modules'"
ansible dbservers -z command -a "/bin/echo '
hello modules'"
ansible dbservers -m command -a "/bin/echo '
hello modules'"
ansible dbservers -a "/bin/echo '
hello modules'"
- Which of the following practices is not recommended when you create a custom module and address exceptions?
- Design a custom module simply and never provide a traceback to the user, if you can avoid it.
- Fail your module code quickly, and verify that you are providing helpful and understandable exception messages.
- Only display error messages for the most relevant exceptions, rather than all possible errors.
- Ensure that your module documentation is relevant and...