EX294 · Question #18
18. Use the TimeSync RHEL system role (together with Question 4, one question will be randomly selected using a system role). Install the RHEL system role package, and create a playbook that meets…
The correct answer is A. See the below explanation. Explanation/Reference: # Note: There is no NTP service in this environment; just write the configuration syntax. [greg@control ansible]$sudo yum -y install rhel-system-roles [greg@control ansible]$cp -r /usr/share/ansible/roles/rhel-system-roles.timesync/ roles/timesync…
Question
- Use the TimeSync RHEL system role (together with Question 4, one question will be randomly selected using a system role). Install the RHEL system role package, and create a playbook that meets the following requirements: Path: /home/greg/ansible/timesync.yml Run on: all managed nodes Use: the timesync role Configure the role to use the currently effective (active) NTP provider Configure the role to use the time server classroom.lab.example.com
Options
- ASee the below explanation
How the community answered
(39 responses)- A100% (39)
Explanation
Explanation/Reference: # Note: There is no NTP service in this environment; just write the configuration syntax. [greg@control ansible]$sudo yum -y install rhel-system-roles [greg@control ansible]$cp -r /usr/share/ansible/roles/rhel-system-roles.timesync/ roles/timesync [greg@control ansible]$ vim timesync.yml - name: Create NTP timesync_ntp_servers: - hostname: classroom.lab.example.com [greg@control ansible]$ ansible-navigator run timesync.yml -m stdout
Topics
Community Discussion
No community discussion yet for this question.