Review questions
Do you think you've understood the chapter well enough? Try answering the following questions to test your understanding:
- Why do we need command modules when Ansible has a battery-included approach?
- When and why do we use the raw module?
- How do we use the
creates
parameter with a shell when the command being executed does not create a file? - How are
command
andshell
modules different? When would you use a shell? - If
var3
is a registered variable, how would you print its output in a template?