Question 1
BeginnerRHCSA Foundation Skills · Operate running systems
A system administrator is writing a playbook to ensure a critical monitoring service, 'monitord', is not only started but also configured to launch automatically when the server reboots. The administrator uses the ansible.builtin.service module. Which combination of parameters ensures both requirements are met?
Answer and explanation
Correct answer: C
The state=started parameter ensures the service is currently running. The enabled=yes (or enabled=true) parameter ensures the service is enabled in systemd to start at boot time. 'persistent' is not a valid parameter, and 'running' is not the standard state value (though 'started' is preferred).
