Create a playbook called regulartasks.yml which has the system that append the date to /root/datefile every day at noon. Name is job 'datejob'
Suggested Answer: A
Get Premium EX294 Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
33 comments · newest first
SE
Serina
11 months ago
Totally agree, cron jobs are the way to go!
KR
Kris
12 months ago
Wait, does it really append instead of overwrite?
JA
Jarod
12 months ago
This is a neat way to log dates daily.
LI
Lizette
1 year ago
Sounds good, but what if the server is down at noon?
KR
Kristin
1 year ago
Just use cron to schedule the task!
RI
Ricarda
1 year ago
I think I need to use the 'cron' module, but I can't remember if I should specify the user or just the command.
ME
Mee
1 year ago
I feel a bit confused about the indentation in YAML files. I hope I don't mess that up while defining the job 'datejob'.
WI
Willard
1 year ago
This seems similar to the practice question where we had to schedule a backup. I hope I can recall the correct module to use for this task.
BA
Bambi
1 year ago
I think I remember how to set up a cron job in a playbook, but I'm not entirely sure about the syntax for appending the date.
AD
Adolph
1 year ago
This is straightforward, I've got this. I'll just put together the playbook with the cron task and test it out. Shouldn't take long at all.
SU
Suzan
1 year ago
Wait, do I need to create the /root/datefile first, or will Ansible handle that? I don't want to assume anything.
CR
Cruz
1 year ago
No problem, I've done this kind of thing before. I'll use the cron module to schedule the job and make sure the file gets updated daily.
AN
Andra
1 year ago
Okay, this looks straightforward. I'll need to create a playbook file and define the task to append the date to the /root/datefile at noon.
BU
Buffy
1 year ago
Hmm, not sure how to schedule the task to run at a specific time. I'll need to research Ansible's time-based modules or triggers.
DA
Dana
1 year ago
The OS Administration Page sounds like it could be the right answer, but I'm not 100% confident. I'll have to think this through a bit more.
DA
Darrin
1 year ago
This looks like a pretty straightforward setup for posting Use Tax to separate accounts by tax rate. I think option A is the best approach - setting up the automatic accounting instructions to post to a BU.OBJ and then creating the chart of accounts with the tax authority as the SUB.
CA
Camellia
2 years ago
This is straightforward enough, but I wonder if there's a way to make it more dynamic, like getting the date from a variable or something.
SI
Silva
1 year ago
User1: Exactly, that way your playbook will always use the current date without hardcoding it.
DE
Denny
1 year ago
User2: That's a good idea. Then you can use that variable in your playbook to append the date to the file.
KE
Kenny
1 year ago
User1: You can use the date command to get the current date and time in a variable.
BA
Barrett
2 years ago
Haha, 'datejob' - sounds like a job even I could do without messing up!
YU
Yuki
1 year ago
The solution provided in the image looks clear and easy to follow for creating the playbook.
LO
Lorean
1 year ago
Yeah, 'datejob' does sound like a job anyone could handle without any issues.
DO
Donte
1 year ago
That playbook seems pretty straightforward, just need to append the date to a file at noon every day.
ME
Meaghan
2 years ago
Wait, is 'datejob' the name of the task or the cron job? I'm a little confused there.
NA
Nancey
2 years ago
Looks good to me! Cron job to append the date to a file - easy peasy!
EA
Earnestine
1 year ago
User1: Got it, thanks for the explanation!
MA
Malcolm
1 year ago
User3: The job name should be 'datejob' as mentioned in the question.
RO
Robt
2 years ago
User2: Yes, and make sure to add the system that appends the date to /root/datefile every day at noon.
MA
Mattie
2 years ago
User1: I think I got it, just need to create a playbook called regulartasks.yml, right?
CA
Cathrine
2 years ago
The solution provided in the image seems clear and straightforward. We just need to follow the steps to complete the task.
ED
Edmond
2 years ago
Yes, that's correct. We need to name the job 'datejob' and the playbook 'regulartasks.yml'.
CA
Cathrine
2 years ago
I think the question is asking us to create a playbook for a task that appends the date to a file every day at noon.