Configuration Management with Ansible Quiz Questions and Answers

What is the default inventory path?

Answer :
  • /etc/ansible/hosts

The recommended practice to use the ansible.cfg file is_______.

Answer :
  • The current working directory ./ansible.cfg

A correct variable defined is_______.

Answer :
  • web_server

Which module is used for the partition of block devices?

Answer :
  • parted

Which module supports the configuration of mount points on /etc/fstab?

Answer :
  • Mount

Default modules used in ad-hoc command is_________.

Answer :
  • command

Command to get ansible documentation of a module is________.

Answer :
  • ansible-doc < module >

What is a playbook?

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

Inventory file can be in which format?

Answer :
  • INI format
  • YAML format

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

Answer :
  • docker_service