Questions
Answer the following questions to test your knowledge of this chapter:
- Which of the following
ansible-doc
commands can you use to list the names of all the cache plugins?ansible-doc -a
cache -l
ansible-doc
cache -l
ansible-doc -
a cache
ansible-doc -t
cache -l
ansible-doc cache
- Which class do you need to add to your
lookup
plugin’s code to include the bulk of the plugin code, includingrun()
, theitems
loop,try
, andexcept
?LookupModule
RunModule
StartModule
InitModule
LoadModule
- True or false: To create custom plugins with complex operations rather than printing simple hello world text using Python, you need to install Python with the relevant dependencies on your OS.
- True
- False