← All Ansible Automation Flashcard Decks

Ansible Roles & Galaxy 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 Roles & Galaxy flashcards as text
  1. What is Ansible Galaxy?

    Answer: A community hub for sharing and downloading reusable Ansible roles and collections

    Ansible Galaxy (galaxy.ansible.com) is the official community repository where users share roles and collections for reuse.

  2. How do you install a role from Ansible Galaxy?

    Answer: ansible-galaxy role install namespace.rolename

    ansible-galaxy role install downloads the role from Galaxy into the configured roles path.

  3. What file format is used to define a list of roles and collections to install from Galaxy?

    Answer: requirements.yml

    requirements.yml lists roles and collections with optional version pins that ansible-galaxy install -r processes.

  4. Which command installs all roles and collections listed in a requirements.yml file?

    Answer: ansible-galaxy install -r requirements.yml

    The -r flag tells ansible-galaxy to read role and collection dependencies from the specified requirements file.

  5. What is an Ansible Collection?

    Answer: A packaged bundle of roles, modules, plugins, and playbooks distributed as a single unit

    A Collection bundles related roles, modules, plugins, and playbooks into a distributable package with a namespace.collection format.

  6. What is the default installation path for Galaxy roles on a Linux system?

    Answer: ~/.ansible/roles

    By default, ansible-galaxy installs roles to ~/.ansible/roles in the current user's home directory.

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