- Installed Docker for 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'))
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
Default playbook path is <current dir>/playbook
You can override the playbook path via environment variable PLAYBOOK_PATH
.
The installer creates .ansible
directory under the HOME. It places default configuration if not exits.
ansible-runner.cmd
ansible-runner.cmd -i all playbook/playbook.yml
ansible-runner
ansible-runner -i all playbook/playbook.yml