DevOps Classroom Series – 15/May/2021

Making the playbook work on multiple distributions

  • In this series lets try to make spring pet clinic work on Centos 7 as well
  • The manual steps are almost the same as what we have done for ubuntu apart from jdk installation Refer Here
sudo yum install java-11-openjdk -y

Lets Try to Create ansible playbook to install lamp stack

sudo apt update
sudo apt install apache2 -y
sudo apt install php libapache2-mod-php php-mysql php-cli -y
# Create a file with content <?php phpinfo(); ?>
/var/www/html/info.php
sudo systemctl restart apache2
  • Refer Here for centos 7 installation steps
  • Manual steps of centos
sudo yum install httpd -y 
sudo systemctl enable httpd
sudo yum install php php-mysql php-fpm -y
# Create a file with content <?php phpinfo(); ?>
/var/www/html/info.php
sudo systemctl restart httpd
  • Refer Here for the play book created for installing apache server with php packages Preview Preview

Lets try to write a ansible playbook to install tomcat 9 on ubuntu 18.04

1  sudo apt update
2  sudo apt install openjdk-11-jdk -y
  • Waiting for 20:48

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Please turn AdBlock off
Floating Social Media Icons by Acurax Wordpress Designers

Discover more from Direct DevOps from Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading

Visit Us On FacebookVisit Us On LinkedinVisit Us On Youtube