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.
I am creating a new Release pipeline with an empty 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.
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.
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 will give you a brief introduction on how you can implement DevOps practices on Microsoft Azure.
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. This Edureka Azure DevOps Tutorial will introduce you to how-to implement DevOps on Azure with practical examples.
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.