200-901 Exam QuestionsBrowse all questions from this exam

200-901 Exam - Question 213


Refer to the exhibit. A developer must integrate a bot with an internal communication app. The developer wants to replace the webexbot package with the teamsbot package by using Ansible and prepares a playbook. In the first two tasks, the playbook stops the webexbot and verifies that the teamsbot is installed.

What is accomplished in the last task of the workflow when the developer runs the Ansible playbook?

Show Answer
Correct Answer: A

In Ansible, when a package state is set to 'absent' along with the 'purge' option set to 'yes,' it means that the package will be uninstalled and its configuration files will be removed. Therefore, in the last task, the webexbot package is uninstalled and its configuration files are also purged.

Discussion

1 comment
Sign in to comment
macxszOption: A
Jun 22, 2022

This information is not on the book. Anyway it is Very obvious. purge boolean Will force purging of configuration files if the module state is set to absent.