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
- Refer Here for the changes made

- Using generic package module Refer Here
Lets Try to Create ansible playbook to install lamp stack
- Refer Here for ubuntu
- Manual steps of ubuntu:
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

Lets try to write a ansible playbook to install tomcat 9 on ubuntu 18.04
- Refer Here
- Install Java on ubuntu 1804
1 sudo apt update
2 sudo apt install openjdk-11-jdk -y
- Waiting for 20:48
