← All Ansible Automation Flashcard Decks

Ansible Modules & Task Execution 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 Modules & Task Execution flashcards as text
  1. What is the purpose of handlers in Ansible?

    Answer: Tasks triggered by the 'notify' directive that run once at the end of a play if notified

    Handlers are special tasks that only run when notified by another task, and they execute once at the end of the play regardless of how many times they are notified.

  2. How do you tag a task so it can be selectively run or skipped?

    Answer: tags: [tagname]

    The 'tags' keyword on a task or play accepts a list of tag strings that can be referenced with --tags or --skip-tags at runtime.

  3. Which ansible-playbook flag runs only tasks that are tagged with a specific tag?

    Answer: --tags

    The --tags flag filters playbook execution to only run tasks whose tags match the specified value(s).

  4. What does the 'async' keyword on a task enable?

    Answer: Runs the task asynchronously so Ansible does not wait for it to complete

    Setting async: launches a long-running task in the background and Ansible polls or checks its status later rather than waiting.

  5. What module is used to check the result of an async task?

    Answer: async_status

    The async_status module queries the status of an async task using its jid (job ID) captured via register.

  6. What does 'changed_when: false' on a task do?

    Answer: Marks the task result as never changed, preventing spurious handler notifications

    changed_when: false tells Ansible to always report the task as unchanged regardless of outcome, preventing unnecessary handler triggers.

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