Posts

Showing posts with the label shell module

Ansible real-time project - Installing and configure Tomcat 10

Image
 Hey DevOps or DevSecOps or SRE Guys!! What's up? in the automation journey one more wonderful learning here!  In this post we will be implementing all our Ansible modules one after other to build a complete solution for Java based Application server installation and running using Ansible playbook. At present Tomcat latest version is 10.0.27 so I've used same  Pre-requisites:  To install Apache Tomcat there is separate JDK/JRE compatibility we need to validate before we proceed Create a dedicated user account as 'tomcat' with shell as bash  to manage Tomcat application server Create a separate directory for tomcat server to be installed Execution of multiple tasks in the Playbook will be as follows: Download the Tomcat software from Apache Tomcat 10.0.27.tar.gz Uncompressing the tomcat tar.gz file Change the file permissions and ownership Cleanup after unarchive the tar.gz file Start the Tomcat server Have a task to stop the Tomcat server --- - n...

Installation of Ansible on CentOS 7 | RHEL | OpenSuse | Ubuntu

Image
 Hello Guys!!  In this post let's explore the installation options for Ansible Core. We can get the detailed Documentation provided by Ansible in the Installation Guide. I've also gone through the Amazing Book : Ansible for DevOps   Here he explained that beginners can start with playing in Laptop by setting up the Virtual Boxes for Ansible learnings.  Today I have started experimenting with Ansible installation on the CentOS 7 Vagrant box, As you know Ansible is from the RedHat. Ansible having 3300+ modules freely available. At the end of the installation, we can test the connectivity with the ' ping ' and ' shell ' module which will be referred to the inventory hosts which is present in the "/etc/ansible/hosts" location. Prerequisites for Ansible installation Create Vagrant Boxes where Ansible engine runs on the master node and SSH-Agents will run on two different nodes. PasswordAuthentication enable for sshd_config SSH Connectivity with ssh-keygen A...