weewoo
weewoo

Reputation: 175

Using Azure DevOps with Ansible

I want to deploy an Ansible playbook through Azure DevOps but the Ansible extension requires us to have a Linux VM configured with Ansible in order to deploy our playbook. Is there a way to deploy the Ansible playbook through Azure DevOps withougt needing to configure a Linux VM first?

Upvotes: 2

Views: 2853

Answers (1)

Mengdi Liang
Mengdi Liang

Reputation: 18978

To run this Ansible extension, Linux VM just be one of choice. If you don't want use VM, you can choose another method: Private Linux agent.

Just install a private linux agent in your Linux machine.

Then during the pipeline configuration, select Agent machine.

enter image description here

This method do not need you create a linux VM and create SSH endpoint with that VM. Just install linux agent into machine, then the pipeline can run with that.

Note:

Do not forget the prerequisites: The Playbook and Inventory files be located on a private Linux agent.

Upvotes: 1

Related Questions