Exam 200-901 | Question id=6166 | Software Development and Design |
Refer to the exhibit.
- hosts: servers
tasks:
- name: task1
systemd:
name: webexbot
state: stopped
- name: task2
apt:
name: teamsbot
- name: task3
apt:
name: webexbot
state: absent
purge: yes
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?
A. |
uninstalls the webexbot package and removes its configuration files | |
B. |
installs the webexbot and retains the configuration files | |
C. |
stops the webexbot service and uninstall it and retains its configuration files | |
D. |
searches whether the purge package is available in the repository and uninstalls the webexbot package |