Run Anisble Playbook From Azure Devops Release Pipeline

Run Anisble Playbook From Azure Devops Release Pipeline

In this article, I will explain how to run Ansible Playbook from the Azure DevOps tool. This tutorial assumes that the Ansible utility is installed and enabled. I am adding Azure DevOps in artifacts as I am using Azure repository to store our playbook and inventory file. I have already Pushed the inventory file and tutorial.yml playbook in my Azure repo branch ansible-tutorial.

1) Create New Release Pipeline

I am creating a new Release pipeline with an empty job.

2) Add Artifacts in Release Pipeline Job

I am adding Azure DevOps in artifacts as I am using Azure repository to store our playbook and inventory file. I have already Pushed the inventory file and tutorial.yml playbook in my Azure repo branch ansible-tutorial.

Select your Project, Repo, and branch to add artifacts in your release pipeline.

3) Upload and Configure Secure Key in Stage 1 for Ansible-Playbook Authentication

I am using the SSH key for authentication on my target machine. To pass the ssh key I will upload it using Download Secure file utility available.

Download Secure Utility: Is used for storing secure files in your release pipeline like ssh key, SSL certs, CA certs. During execution, files are downloaded in a temp folder and their path can be accessed by calling the reference variable( shown below). These files are deleted as the release job is completed.

tutorial devops ansible azure devops ansible playbook

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

Azure DevOps Pipeline Tutorial | Azure DevOps Tutorial for Beginners

Azure DevOps Pipeline Tutorial will give you a brief introduction on how you can implement DevOps practices on Microsoft Azure.

Azure DevOps CI/CD Pipeline | Azure DevOps Tutorial | Azure DevOps

Azure DevOps CI/CD Pipeline will give you a brief introduction on how you can implement DevOps practices on Microsoft Azure.

Create, Build, Deploy and Configure an Azure Function with Azure DevOps and Azure CLI

How to create, build, deploy and configure an Azure Function using Azure DevOps, Azure CLI and Powershell.

Azure DevOps Tutorial For Beginners | DevOps with Azure

Azure DevOps Tutorial For Beginners | DevOps with Azure. This Edureka Azure DevOps Tutorial will introduce you to how-to implement DevOps on Azure with practical examples.

Updated: Announcing Azure DevOps Server 2020 RC1 | Azure DevOps Blog

Update: We received feedback in this blog and the Developer Community about an issue after upgrading from Azure DevOps Server 2019 Update 1.1 to Azure DevOps Server 2020 RC1.