Ansible in a Docker Container
FROM ubuntu:18.04
MAINTAINER Carles San Agustin
RUN apt-get update && \
apt-get -y install python-pip python-dev build-essential software-properties-common && \
apt-get -y install ansible && \
pip install pywinrm && \
pip install apache-libcloud
WORKDIR /shared
# CREATE: docker build -t "ansible" .
# RUN command: docker run -v $(pwd):/shared ansible ansible-playbook playbook.yml
# RUN interactive : docker run -it -v $(pwd):/shared ansible bash