Run Ansible 2+ on Jupyter Notebook 4+ (ipython notebook).
50K+
A Docker image for run Ansible 2.x on Jupyter Notebook 4.x (ipython notebook) with Browsers.
Dockerfile linksalpine-3, latest (alpine-3/Dockerfile)archlinux (archlinux/Dockerfile)centos-7 (centos-7/Dockerfile)debian-9 (debian-9/Dockerfile)gentooopensuse-42.3 (opensuse-42.3/Dockerfile)ubuntu-18.04 (ubuntu-18.04/Dockerfile)Get this project.
$ git clone https://github.com/chusiang/ansible-jupyter.dockerfile.git
Go to workspace.
$ cd ansible-jupyter.dockerfile/<IMAGE_TAG>/
Bunild the image.
$ docker build -t chusiang/ansible-jupyter .
Get image.
$ docker pull chusiang/ansible-jupyter
Run the container with daemon mode.
$ docker run --name ansible-jupyter -P -d chusiang/ansible-jupyter
be8a15b9d4da5d24610c1fc738cb13086f01101e90f94640360d8d84892de772
Check container process.
$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
be8a15b9d4da chusiang/ansible-jupyter "docker-entrypoint.sh" 12 seconds ago Up 11 seconds 0.0.0.0:32808->8888/tcp ansible-jupyter
Enter container with command line.
$ docker exec -it ansible-jupyter sh
/ #
Now, you can play the Ansible on Jupyter.
Go jupyter web.
# GNU/Linux
$ firefox http://localhost:32786
# macOS
$ open http://localhost:32786

Attach my example ==> ansible_on_jupyter.ipynb.

Remember use the ! prefix to trigger system command.
You can see more detail at 怎麼用 Jupyter 操控 Ansible?(localhost) | 現代 IT 人一定要知道的 Ansible 自動化組態技巧 .
Enjoy it !
alpine-3.8. Stop automated build image of alpine-3.4, alpine-3.6 and opensuse-42.2.alpine-3.7, ubuntu-18.04. Stop automated build image of ubuntu-14.04.centos-6, debian-7 and alpine-3.4_ansible-2.1.gentoo, opensuse-42.1 and alpine-3.4.Copyright (c) chusiang from 2016-2020 under the MIT license.
Content type
Image
Digest
Size
272.7 MB
Last updated
almost 6 years ago
docker pull chusiang/ansible-jupyter