Chapter 3, The Ansible Commands

  1. Of the commands that provide information about your host inventory that we have covered in this chapter, which ships with Ansible by default?

The ansible-inventory command

  1. True or false: Variable files that have strings encrypted with Ansible Vault will work with versions of Ansible lower than 2.4.

False

  1. What command would you run to get an example of how you should call the yum module as part of your task?

You would use the ansible-doc command

  1. Explain why you would want to run single modules against hosts within your inventory.

You would use a single module if you want to use Ansible to run an ad hoc command against several hosts in a controlled way.

Get Learn Ansible now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.