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
Which file is Ansible's primary configuration file?
Answer: ansible.cfg
ansible.cfg is the primary configuration file Ansible reads for settings like inventory path, remote user, and SSH options.
What is the order of precedence Ansible uses when searching for ansible.cfg?
Answer: ANSIBLE_CONFIG env var → ./ansible.cfg → ~/.ansible.cfg → /etc/ansible/ansible.cfg
Ansible checks for configuration in this order: ANSIBLE_CONFIG env var, then ./ansible.cfg, then ~/.ansible.cfg, then /etc/ansible/ansible.cfg.
Which ansible.cfg setting disables SSH host key checking?
Answer: host_key_checking = False
Setting host_key_checking = False in ansible.cfg disables SSH known_hosts verification, useful in dynamic environments.
Which ansible.cfg directive sets the default number of parallel host connections?
Answer: forks
The 'forks' setting in ansible.cfg (default 5) controls how many hosts Ansible connects to simultaneously.
What command shows the current Ansible configuration with effective values and their source?
Answer: ansible-config dump
ansible-config dump outputs all configuration settings with their current values and the source file they came from.
Which setting in ansible.cfg controls the default remote user Ansible connects as?
Answer: remote_user
The remote_user directive in ansible.cfg sets the default SSH user Ansible uses when connecting to managed hosts.
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
- redhat.com — Score release, test delivery, renewal, score validity, exam information · verified Oct 2026
- docs.redhat.com — Fees, exam format, retake policy · verified Oct 2026