Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem StatementRashford assoc. are having trouble provisioning their server environmentbecause of the inconsistencies caused by the new update. They have Hired Marcus to solve their

Problem StatementRashford assoc. are having trouble provisioning their server environmentbecause of the inconsistencies caused by the new update. They have Hired Marcus to solve their problems related to managing servers. Marcus, after researching, introduced Ansible to the system. Now, he needs to provision the production environment for the upcoming update of their software.

Action Items

Create separate roles for setting up Apache Tomcat and Apache Maven

Add the necessary logic to the roles to set up the tools

Create a new playbook and call Tomcat as well as Maven roles inside it

Execute the playbook on all the hosts

Commands to install Tomcat and MavenApache Tomcat:

1.sudo apt-get update

2.sudo apt-get install default-jdk

3.sudo groupadd tomcat

4.sudo useradd -s /bin/false -g tomcat -d /opt/tomcat tomcat5.curl -O http://redrockdigimark.com/apachemirror/tomcat/tomcat-8/v8.5.31/bin/apache-tomcat-8.5.31.tar.gz

6.sudo mkdir /opt/tomcat

7.sudo tar xzvfapache-tomcat-8*tar.gz -C /opt/tomcat --strip-components=1

8.sudo mkdir /opt/tomcat

9.cd /opt/tomcat

10.sudo chgrp -R tomcat /opt/tomcat

11.sudo chmod -R g+r conf

12.sudo chmod g+x conf

13.sudo chown -R tomcat webapps/ work/ temp/ logs/

14.Add this code to /etc/systemd/system/tomcat.service

[Unit]

Description=Apache Tomcat Web Application Container

After=network.targetd

[Service]

Type=forking

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_2

Step: 3

blur-text-image_3

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

Fundamentals Of Database Systems

Authors: Sham Navathe,Ramez Elmasri

5th Edition

B01FGJTE0Q, 978-0805317558

More Books

Students also viewed these Databases questions

Question

Prepare an electronic rsum.

Answered: 1 week ago

Question

Strengthen your personal presence.

Answered: 1 week ago

Question

Identify the steps to follow in preparing an oral presentation.

Answered: 1 week ago