Running CICD Using Git, Jenkins, Ansible, Apache

Mangesh Prakash Jadhav
3 min readAug 30, 2021

What is DevOps?

DevOps is a software engineering approach or culture that unifies the Development and Operations team under an umbrella of tools to automate every stage. The Development team is responsible for coding or scripting the software and integrating all the components needed to run that software. Meanwhile, the Operations team is responsible for managing the organization’s diverse workforce to ensure effective and efficient daily operations.

What is a CI/CD Pipeline?

CI/CD pipeline refers to the Continuous Integration/Continuous Delivery pipeline.

A pipeline is a concept that introduces a series of events or tasks that are connected in a sequence to make quick software releases. For example, there is a task, that task has got five different stages, and each stage has got some steps. All the steps in phase one have to be completed, to mark the latter stage to be complete.

The CI/CD pipeline as the backbone of the DevOps approach. This Pipeline is responsible for building codes, running tests, and deploying new software versions. The Pipeline executes the job in a defined manner by first coding it and then structuring it inside several blocks that may include several steps or tasks.

For this project, we require 3 machines.

  1. Jenkins
  2. Ansible
  3. Webserver

I have launched this machine on AWS. For this, I have used Amazon Linux image.

After launching we have to do some setup for this visit below link

Create a public git repository and add some web pages.

Integrate Jenkins with github.

  1. Create API token.

2. Use this token while creating the webhook in secret field.

Now we have to install one plug in jenkins ‘Publish Over SSH

Here we use Git as Source Code Management so Jenkins server need git installed in it.

# yum install git -y
# which git

After installing add git into Global Tool Configuration.

In this project

Now we have to setup SSH server under Publish over SSH in the configuration

One for jenkins and other for ansile

Now we can create job as freestyle and build it.

Thanks for reading, I’ll meet you at the next one! 🎯

--

--