Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Your Ansible playbook must perform the numbered tasks below: You're provided with the modules to use, but your main goal is to determine how

image text in transcribedimage text in transcribed

Your Ansible playbook must perform the numbered tasks below: You're provided with the modules to use, but your main goal is to determine how you'll use those modules to complete the tasks. 1. [Yum module] Install Apache service (httpd) 2. [File, loop modules] Create the directories for each company (to look like this /var/www/{{item.apache_dir}}/html) 3. [Template, loop modules] Create an index.html page with the company name (specified below) using the Jinja2 template file (HINT: use the template module) 4. [Template module] Deploy the "httpd.conf" file using the template module to "/etc/httpd/conf/" 5. [File, with_items modules] In the "/etc/httpd/" directory, create two (2) directories named "sites- enabled" and "sites-available" 6. [Template module] Deploy the "apachetemplate.conf" file using the template module to "/etc/httpd/sites-available/" 7. [File module] Create a symbolic link between the "/etc/httpd/sites-available/apachetemplate.conf" to "/etc/httpd/sites- enabled/apachetemplate.conf" 8. [Service module] Restart the Apache service 9. [Firewalld module] Stop the CentOS firewalls Your Ansible playbook must perform the numbered tasks below:

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Communications and Networking

Authors: Behrouz A. Forouzan

5th edition

73376221, 978-0073376226

More Books

Students also viewed these Computer Network questions

Question

Calculate the fugacity of pure liquid propane at 333 K and 22 bar.

Answered: 1 week ago

Question

47. If E[Y |X] = 1, show that Var(XY) Var(X)

Answered: 1 week ago