Red_Hat
EX294 · Question #5
05. Configuring Collections Configure collections with the following files: - redhat-insights-1.0.7.tar.gz - community-general-5.5.0.tar.gz - redhat-rhel_system_roles-1.19.3.tar.gz All three are…
This task involves installing specified Ansible collections from a requirements.yml file into a custom directory using ansible-galaxy.
Submitted by katya_ua· Apr 18, 2026Install and Configure Ansible Control Nodes
Question
- Configuring Collections Configure collections with the following files: - redhat-insights-1.0.7.tar.gz - community-general-5.5.0.tar.gz - redhat-rhel_system_roles-1.19.3.tar.gz All three are installed in the /home/greg/ansible/mycollection directory. Correct Answer: See the below explanation Explanation Explanation/Reference: Solution: [Virtual Machine: 172.25.250.254|control] [greg@control ansible]$ vim requirements.yml --- collections: [greg@control ansible]$ ansible-galaxy collection install -r requirements.yml -p /home/greg/ansible/mycollection # Verification (mandatory operation) [greg@control ansible]$ ansible-navigator collections [greg@control ansible]$ ansible-navigator doc community.general.filesystem -m stdout
Explanation
This task involves installing specified Ansible collections from a requirements.yml file into a custom directory using ansible-galaxy.
Concept tested. Installing Ansible collections from requirements
Reference. https://docs.ansible.com/ansible/latest/galaxy/user_guide.html#installing-collections
Topics
#Ansible Collections#ansible-galaxy#requirements.yml#Collection Installation
Community Discussion
No community discussion yet for this question.