Answered step by step
Verified Expert Solution
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
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started