The dockerfile is install ansible wihth ubuntu 18.04. We can use this repository first build the docker image.
docker build -t docker-ansible-ubuntu1804
Now you can use your docker images and run using below command.
docker run -it docker-ansible-ubuntu1804 bash
We can pull the image from docker hub using below line of command
docker pull omrsaran/docker-ansible-ubuntu1804:latest