← All Ansible Automation Flashcard Decks

Ansible Inventory & Configuration Management Flashcards

6 cards from real Ansible Automation practice questions. Tap to flip, then mark Knew It or Still Learning — missed cards come back until you master them.

Read the first 6 Ansible Inventory & Configuration Management flashcards as text
  1. What is the default location of the Ansible inventory file?

    Answer: /etc/ansible/hosts

    Ansible's default inventory file is located at /etc/ansible/hosts unless overridden by ansible.cfg or the -i flag.

  2. Which INI-style inventory syntax correctly defines a group called 'webservers'?

    Answer: [webservers]

    Inventory groups in INI format are defined using square brackets, such as [webservers].

  3. How do you specify a custom inventory file when running an Ansible playbook?

    Answer: -i /path/to/inventory

    The -i flag (short for --inventory) is used to specify a custom inventory file path.

  4. What keyword is used in an inventory file to define variables that apply to all hosts in a group?

    Answer: [groupname:vars]

    The :vars suffix on a group header (e.g., [webservers:vars]) defines variables that apply to all hosts in that group.

  5. Which inventory keyword is used to create a group that contains other groups as members?

    Answer: [parentgroup:children]

    The :children suffix on a group header allows you to nest groups inside a parent group.

  6. What host pattern would you use to target all hosts in both 'webservers' and 'dbservers' groups?

    Answer: webservers:dbservers

    Using a colon between group names (webservers:dbservers) creates a union pattern targeting hosts in either group.

How this page was made: written with AI tools and published by Nathan Beja, founder of Practice Test Geeks, who is responsible for its content. Exam facts are checked against the official sources listed below. Not reviewed by a subject-matter expert. Editorial policy

Sources & references

Exam facts on this page (fees, format, dates, passing scores) are checked against these official sources; the date is our last check. Editorial policy

  1. redhat.com — Score release, test delivery, renewal, score validity, exam information · verified Oct 2026
  2. docs.redhat.com — Fees, exam format, retake policy · verified Oct 2026