1.

What is the use of Ansible in Jenkins?

Answer»

Ansible is an incredible ASSET for IT automation and can be utilized in a CI/CD procedure to arrangement the target environment and to an application on it. The most effective method to utilize Ansible for environment provisioning and application deployment in a Continuous Integration/Continuous Delivery (CI/CD) process utilizing a Jenkins Pipeline. Jenkins is a notable tool for automation CI/CD. Shell scripts are regularly utilized for provisioning environments or to deploy applications amid the pipeline stream. DESPITE the fact that this could work, it is bulky to keep up and reuse contents over the long haul.

The motivation behind utilizing Ansible in the pipeline stream is to reuse jobs and Playbooks for provisioning, leaving Jenkins just as a procedure orchestrator rather than a shell script agent.

The above  represents the accompanying engineering COMPONENTS:

  • Github is the place where our project is facilitated and where Jenkins will survey for changes to begin the pipeline stream.
  • SonarSource is our source code ANALYSIS server. On the off chance that anything turns out badly amid the examination (for example insufficient unit tests), the stream has interfered. This progression is imperative to ensure the source code quality record.
  • Nexus is the artifact archive. After an effective accumulation, unit tests, and quality examinations, the binaries are transferred into it. Later those binaries will be downloaded by Ansible amid the application deployment.
  • The Ansible Playbook, which is a YAML record COORDINATED in the application source code, conveys the Spring Boot App onto a CentOS machine.
  • Jenkins is our CI/CD process orchestrator. It is dependable to assemble every one of the pieces, bringing about the application effectively deployed in the target machine.


Discussion

No Comment Found