- First release
- It's configured to read the hosts file at /root/hosts which should be mounted to your working dir.
- /root -> your working dir
Tag | Ubuntu Version |
---|---|
latest | Bionic |
docker run --rm -it -v "C:\ansible:/root" jairbj/ansible:latest
docker run --rm -it -v "C:\ansible:/root" jairbj/ansible:latest ansible all -m ping
You'll find at ps1Shortcuts folder some PowerShell scripts that forwards commands to the container and print the result.
You'll find one .ps1 file for each Ansible executable available in the container.
You'll also find the ansible-container.ps1 which opens the ansible container for manually run commands.
.\ansible.ps1 all -m ping
.\ansible-inventory.ps1 --list