Ansible 2 done right

Welcome to the Ansible 2 training!

Jupyter

is the course environment in your browser.

It's not a way for not doing your homework ;)

You can:

Go to the basic python course


In [ ]:
# You can evaluate maths and strings
s = 1
print("a string and the number " + str(s))

s = s + 1
print("now s is increased " + str(s))

Git

is the powerful versioning system used to distribute this course

Go to your git beginners course

Docker

Docker is a lightweight container environment. Jupyter and all other "machines" are based on docker.

Slideshare presentation

Reveal JS

Some examples via a local terminal

Go to your docker-101course

Exercises

Exercise solutions are folded. You can show them clicking on the + sign.


In [ ]:

Don't do that :D just try and ...


In [ ]:

Setup with digitalocean (if you don't have your server)

Create and ssh into your docker droplet.

Setup example

Docker must listen on 172.17.0.1:2735

# vim /etc/systemd/system/multi-user.target.wants/docker.service
[Service]
...
ExecStart=/usr/bin/dockerd -H fd:// -H tcp://172.17.0.1:2375
...
#wq!

systemctl daemon-reload
systemctl restart docker

Clone and start

git clone https://github.com/ioggstream/python-course.git
cd python-course/ansible-101
make course

Connect to jupyter

firefox http://43.32.54.212:8888/tree/notebooks/?token=....