Skip to content

Windows runtime environment for Ansible with seamless integration based on Docker.

License

Notifications You must be signed in to change notification settings

shakahl/ansible-runner-docker

Repository files navigation

ansible-runner-docker

Docker Stars Docker Pulls Docker Automated build Build Status

Requirements

  • Installed Docker for Windows

Installation

On Windows

Command line

@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/shakahl/ansible-runner-docker/master/install.ps1'))" && SET "PATH=%PATH%;%APPDATA%\ansible-runner\ansible-runner.cmd"

PowerShell

Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/shakahl/ansible-runner-docker/master/install.ps1'))

On Linux

curl method:

#!/bin/bash
curl -sL https://raw.githubusercontent.com/shakahl/ansible-runner-docker/master/install.sh | sudo bash -

wget method:

#!/bin/bash
wget -O - https://raw.githubusercontent.com/shakahl/ansible-runner-docker/master/install.sh | sudo bash

Configuration

Playbook path

Default playbook path is <current dir>/playbook

You can override the playbook path via environment variable PLAYBOOK_PATH.

Ansible configuration

The installer creates .ansible directory under the HOME. It places default configuration if not exits.

Usage

On Windows

ansible-runner.cmd
ansible-runner.cmd -i all playbook/playbook.yml

On Linux

ansible-runner
ansible-runner -i all playbook/playbook.yml

Resources