Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

RedHat EX294 Exam - Topic 2 Question 31 Discussion

Create a playbook that changes the default target on all nodes to multi-user tarqet. Do this in playbook file called target.yml in /home/sandy/ansible
A) Explanation: - name: change default target hosts: all tasks: - name: change target file: src: /usr/lib/systemd/system/multi-user.target dest: /etc/systemd/system/default.target state: link

RedHat EX294 Exam - Topic 2 Question 31 Discussion

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

Create a playbook that changes the default target on all nodes to multi-user tarqet. Do this in playbook file called target.yml in /home/sandy/ansible

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

0/2000 characters
Kasandra
10 months ago
I thought the default target was always set to graphical.target by default?
upvoted 0 times
...
Reita
10 months ago
This looks good, but make sure to test it first!
upvoted 0 times
...
Maricela
10 months ago
Wait, is changing the default target really safe for all nodes?
upvoted 0 times
...
Kara
10 months ago
Totally agree, indentation is key in YAML!
upvoted 0 times
...
Lorean
11 months ago
Just a quick note, the playbook should have the correct indentation.
upvoted 0 times
...
Mozell
11 months ago
I recall that we need to specify the state as 'link', but I’m not clear if the source path is correct.
upvoted 0 times
...
Lamonica
11 months ago
I’m a bit confused about the 'file' module here. Is it the right one to use for creating a symlink?
upvoted 0 times
...
Izetta
11 months ago
This seems similar to the practice question we did on changing services. I feel like I should double-check the path for the multi-user target.
upvoted 0 times
...
Precious
11 months ago
I think I remember we need to create a symbolic link for the default target, but I'm not entirely sure about the exact syntax.
upvoted 0 times
...
Effie
11 months ago
Wait, do I need to include any variables or handlers in this playbook? I want to make sure I'm not missing anything important that could trip me up.
upvoted 0 times
...
Azzie
11 months ago
Okay, I think I've got a good strategy for this. I'll create the playbook file in the specified location, then use the file module to create a symlink from the multi-user.target to the default.target. Should be a quick one to knock out.
upvoted 0 times
...
Launa
11 months ago
This looks straightforward, I think I can handle it. I'll just need to create the playbook file in the right directory and make sure the tasks are set up correctly.
upvoted 0 times
...
Yaeko
11 months ago
Hmm, I'm a little unsure about this one. Creating a playbook to change the default target seems simple enough, but I want to double-check the syntax and make sure I have the right file path.
upvoted 0 times
...
Elouise
11 months ago
Ah, I've seen this type of problem before. Setting the same MTU values on both sides of the link is probably the way to go. That's usually the culprit when OSPF neighbors can't synchronize.
upvoted 0 times
...
Andra
11 months ago
I'm a bit confused on the best way to approach this. Should I create a new role, or edit the default user role? I want to make sure I don't accidentally break anything, so I'll need to review the Splunk documentation carefully before making any changes.
upvoted 0 times
...

Save Cancel