Questions

  1. How do you restart the Apache web server in the frontends host group via an ad hoc command?

A) ansible frontends -i hosts -a "name=httpd state=restarted"

B) ansible frontends -i hosts -b service -a "name=httpd state=restarted"

C) ansible frontends -i hosts -b -m service -a "name=httpd state=restarted"

D) ansible frontends -i hosts -b -m server -a "name=httpd state=restarted"

E) ansible frontends -i hosts -m restart -a "name=httpd"

  1. Do blocks allow you to logically make a group of tasks, or perform error handling?

A) True

B) False

  1. Default strategies are intended via the relevant modules in the playbook.

A) True

B) False

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset