6 Ansible ad-hoc commands questions that you might get asked during an interview.


Question 1

Correct Answers: 1/2

What are Ansible ad-hoc commands?


Question 2

Correct Answers: 1/4

Which argument do you need to specify in order to run a specific Ansible module?


Question 3

Correct Answers: 1/4

What does the Ansible setup module do?


Question 4

Correct Answers: 1/4

Which command will you use to test the connectivity to the host from the master server and make sure that it actually works?


Question 5

Correct Answers: 1/4

Which Ansible command will you use to install Apache on Ubuntu host?


Question 6

Correct Answers: 1/2

The -b flag in an Ansible ad-hoc command indicates that the command should be executed with sudo privileges.


Finish Quiz