The administrator has updated the nginx related packages in the managed nodes under the group webservers. Now the nginx service must be restarted for the update to take effect.
Which of the following command can be used to restart the nginx service?
ansible webservers -m service -a "name=nginx state=restarted" --become -K
ansible webservers -m service -a "name=nginx state=restarted" --become
ansible webservers -m systemctl -a "name=nginx state=restarted" --become -K
ansible webservers -m systemctl -a "name=nginx state=restarted" --become
To get all Infosys Certified Associate in Ansible Automation Exam questions Join Telegram Group https://rebrand.ly/lex-telegram-236dee