Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 747 Bytes

README.md

File metadata and controls

33 lines (24 loc) · 747 Bytes

Build

Small Docker container based on Alpine 3.11 including Ansible version 2.9.9 and the Microsoft Azure modules.

Usage

Launch Docker container injecting Azure environment variables:

$ docker run -it \
  -v ~/ansible:/home/ansible \
  -e AZURE_CLIENT_ID \
  -e AZURE_SECRET \
  -e AZURE_SUBSCRIPTION_ID \
  -e AZURE_TENANT \
  martialonline/docker-ansible-azure:latest sh

Test Ansible

$ ansible localhost -c local -m shell -a 'echo hello world'
localhost | CHANGED | rc=0 >>
hello world

Build locally

Build the container locally

$ docker build -t docker-ansible-azure -f Dockerfile .