Skip to content

Instantly share code, notes, and snippets.

@jeanlouisferey
Last active July 12, 2018 13:52
Show Gist options
  • Save jeanlouisferey/4a6d0e8b9b5195f1c2a068b87d583ceb to your computer and use it in GitHub Desktop.
Save jeanlouisferey/4a6d0e8b9b5195f1c2a068b87d583ceb to your computer and use it in GitHub Desktop.
Install Ansible python prerequisites on debian/ubuntu

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment