carlessanagustin
5/24/2018 - 4:15 PM

Ansible in a Docker Container

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