Ansible with Linux and Windows Administration Quiz Questions and Answers

What is a playbook?

Answer :
  • A playbook is a YAML file containing one or more plays.

Which ansible module is utilized for managing docker services and containers?

Answer :
  • docker_service

Command to get ansible documentation of a module.

Answer :
  • ansible-doc < module >

Which is the Configuration Management Tool?

Answer :
  • Ansible

For managing the service or reloading the daemon which module is used?

Answer :
  • systemd
  • service

Which flag is used to run the smoke test on playbooks?

Answer :
  • --check
  • -C

The directory contains Jinja2 templates that are referenced by role tasks?

Answer :
  • templates

How can you reduce the number of SSH connections required?

Answer :
  • pipelining

Ansible has two types of servers. Select the appropriate answer from the given options?

Answer :
  • controlling machines and nodes

To run privileged operations as a different user, we use?

Answer :
  • --become-user=BECOME_USER