Ansible Playbooks for Azure

This repository contains examples and best practices for building Ansible Playbooks for Azure.

Getting Started

Ansible on Azure

Get Started with Azure

Ansible Playbook

Prerequisites

Azure Account. If you don't have it, get a free one.

To authenticate with Azure, generate service principal and expose them as environment variables or store them as a file.

Quickstart

To run samples in your local environment, please ensure Ansible is installed.

1. git clone https://github.com/Azure-Samples/ansible-playbooks.git
2. cd ansible-playbooks
3. ansible-playbook <sample>.yml

You also could develop your Ansible playbook and run it in Visual Sutdio Code.

Resources

See Ansible Galaxy for example roles from the Ansible community for deploying many popular applications.