Ansible Approach
- Find all the manual steps to deploy application
- Group steps into some common activity and consider this for playbook.
- For each manual step create a task and find the right module of ansible.
Lets install an application which runs on tomcat server
- I need a linux server
- Ubuntu 20.04
- Then execute the following commands
sudo apt update
sudo apt install openjdk-8-jdk -y
sudo apt install tomcat9 -y
wget https://referenceapplicationskhaja.s3.us-west-2.amazonaws.com/gameoflife.war
sudo cp gameoflife.war /var/lib/tomcat9/webapps/
sudo systemctl restart tomcat9.service
- Lets figure out modules
apt
is the command
wget
cp
systemctl
Notes
- Git Bash (Windows)
- Windows Terminal (Windows 10) Refer Here
- Visual Studio Code
- Windows => Refer Here for system setup
- Mac Users
- Install Homebrew Refer Here
- git
brew install git
Refer Here - visual studio code
brew install --cask visual-studio-code
Refer Here
- YAML Refer Here