ExamGecko
Question list
Search
Search

Question 408 - 200-901 discussion

Report
Export

Refer to the exhibit.

The IT team deployed a new Linux virtual machine for a software engineer to use. but the engineer is not comfortable configuring services using Bash. Which workflow is automated by the Ansible playbook?

A.

Restart the network on the ethO interlace and start the httpd service if it is not already started.

Answers
A.

Restart the network on the ethO interlace and start the httpd service if it is not already started.

B.

Restart the httpd service and start the network service for the ethO interface.

Answers
B.

Restart the httpd service and start the network service for the ethO interface.

C.

Start the network service on the ethO interface even if it was brought down manually.

Answers
C.

Start the network service on the ethO interface even if it was brought down manually.

D.

Restart the httpd service and the network service regardless of the state.

Answers
D.

Restart the httpd service and the network service regardless of the state.

Suggested answer: A

Explanation:

The Ansible playbook in the exhibit consists of two stages:

Stage 1: Restarts the network service on the eth0 interface.

Stage 2: Starts the httpd service.

Stage 1:

- name: stage1

ansible.builtin.service:

name: network

state: restarted

args: eth0

This stage ensures that the network service on the eth0 interface is restarted.

Stage 2:

- name: stage2

ansible.builtin.service:

name: httpd

state: started

This stage ensures that the httpd service is started if it is not already running.

Ansible Playbook Documentation: Ansible Service Module

asked 07/10/2024
Andy Mahoney
28 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first