In this chapter, we have covered the fundamentals of Ansible and the way to use it together with Docker. As an exercise, we propose the following tasks:
- Create the server infrastructure and use Ansible to manage it.
- Connect a physical machine or run a VirtualBox machine to emulate the remote server
- Configure SSH access to the remote machine (SSH keys)
- Install Python on the remote machine
- Create an Ansible inventory with the remote machine
- Run the Ansible ad hoc command (with the ping module) to check that the infrastructure is configured correctly
- Create a Python-based "hello world" web service and deploy it in a remote machine using Ansible playbook.
- The service can look exactly the same as described in the exercises for the chapter
- Create a playbook, which deploys the service into the remote machine
- Run the ansible-playbook command and check whether...