Some ubuntu cloud images don't have python installed by default.
This is an Ansible task to install Ansible python prerequisites on debian/ubuntu
tasks:
- name: install python 2
raw: test -e /usr/bin/python || (apt -y update && apt install -y python-minimal)