BlackFriday 2024! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

RedHat Exam EX294 Topic 4 Question 52 Discussion

Actual exam question for RedHat's EX294 exam
Question #: 52
Topic #: 4
[All EX294 Questions]

Install and configure ansible

User bob has been created on your control node. Give him the appropriate permissions on the control node. Install the necessary packages to run ansible on the control node.

Create a configuration file /home/bob/ansible/ansible.cfg to meet the following requirements:

* The roles path should include /home/bob/ansible/roles, as well as any other path that may be required for the course of the sample exam.

* The inventory file path is /home/bob/ansible/inventory.

* Ansible should be able to manage 10 hosts at a single time.

* Ansible should connect to all managed nodes using the bob user.

Create an inventory file for the following five nodes:

nodel.example.com

node2.example.com

node3.example.com

node4.example.com

node5.example.com

Configure these nodes to be in an inventory file where node1 is a member of group dev. nodc2 is a member of group test, nodc3 is a member of group proxy, nodc4 and node 5 are members of group prod. Also, prod is a member of group webservers.

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

Ilona
2 months ago
You need to include /home/Ilona/ansible/roles in the roles path, along with any other required paths.
upvoted 0 times
...
Remona
2 months ago
I'm not sure about the roles path in the configuration file.
upvoted 0 times
...
Ilona
2 months ago
I agree, but I feel confident about my Ansible skills.
upvoted 0 times
...
Aliza
2 months ago
Haha, 'sandy' instead of 'bob'? Looks like someone's trying to get creative here. Let's stick to the instructions, shall we?
upvoted 0 times
...
Wynell
2 months ago
This is a classic Ansible setup question. I'd give this a shot, but I'd also make sure to double-check the username and permissions.
upvoted 0 times
Benedict
1 months ago
User2
upvoted 0 times
...
Elenora
2 months ago
User1
upvoted 0 times
...
...
Remona
2 months ago
I think this question is quite challenging.
upvoted 0 times
...
Floyd
2 months ago
I think the inventory file looks correct, but shouldn't we also include the groups in the configuration file?
upvoted 0 times
Brice
2 months ago
I agree, let's make sure to add the groups in the configuration file for better organization.
upvoted 0 times
...
Ranee
2 months ago
Yes, you're right. We should include the groups in the configuration file as well.
upvoted 0 times
...
...
Erick
3 months ago
The roles path and inventory file path seem to match the requirements, but I'm not sure about the host_key_checking setting.
upvoted 0 times
Alease
2 months ago
Let's make sure everything is configured properly before running any ansible commands.
upvoted 0 times
...
Elvis
2 months ago
Yes, but we should double check the host_key_checking setting.
upvoted 0 times
...
Eliseo
2 months ago
I think the roles path and inventory file path are correct.
upvoted 0 times
...
...
Katy
3 months ago
Looks good, but why are we using the 'sandy' user instead of 'bob' like the question states?
upvoted 0 times
Ahmed
1 months ago
Updated the configuration file to use the 'bob' user. It should be good to go now.
upvoted 0 times
...
Fidelia
1 months ago
I agree, let's make sure to use the 'bob' user as specified in the question.
upvoted 0 times
...
Dominga
2 months ago
That's a good point. Let's update the configuration file to use the 'bob' user instead of 'sandy'.
upvoted 0 times
...
Pamela
2 months ago
We can change the 'sandy' user to 'bob' in the configuration file.
upvoted 0 times
...
...

Save Cancel