Our Ansible cheat sheet

Strange:

[WARNING]: Platform linux on host xyz.mylino.net is using the discovered Python interpreter at /usr/bin/python, but future
installation of another Python interpreter could change this. See
https://docs.ansible.com/ansible/2.9/reference_appendices/interpreter_discovery.html for more information.

Create a file ~/.ansible.cfg:

[default]
interpreter_python=auto_legacy_silent

But the warning doesn’t go away…

How to build a Docker image that allows you to ssh into it:

$ go hg
$ cd projects/ansible
$ docker build -t newserver -f Newserver ~/.ssh
$ docker run -it newserver /bin/bash