Fedora Project

Execute ansible playbook from Jenkins using Ansible plugin

The leading open source automation server, Jenkins provides hundreds of plugins to support building, deploying and automating any project. Read from https://www.cloudbees.com/sites/default/files/cje-study-guide-2018.pdf

Ansible is open source software that automates software provisioning, configuration management, and application deployment. Ansible connects via SSH, remote PowerShell or via other remote APIs.

Goal

To execute an Ansible playbook from Jenkins

Steps

  • Write a playbook
  • Install Ansible plugin in Jenkins
  • Trigger the job

Deliverables

Put the console output and Ansible playbook in a repo and steps on a README, share the link with the mentor (vipul@redhat.com)

Task tags

  • jenkins
  • ansible
  • infra

Students who completed this task

Rishikesh Joshi, Margi, Arash, echoduck, nishantparhi

Task type

  • code Code
close

2018