Skip to content

Instantly share code, notes, and snippets.

View whisk's full-sized avatar
🎯
Focusing

Whisk whisk

🎯
Focusing
  • Belgrade
  • 00:09 (UTC +01:00)
View GitHub Profile
@whisk
whisk / ansible-bootstrap-ubuntu-16.04.yml
Created May 17, 2017 15:03 — forked from gwillem/ansible-bootstrap-ubuntu-16.04.yml
Get Ansible to work on bare Ubuntu 16.04 without python 2.7
# Add this snippet to the top of your playbook.
# It will install python2 if missing (but checks first so no expensive repeated apt updates)
# [email protected]
- hosts: all
gather_facts: False
tasks:
- name: install python 2
raw: test -e /usr/bin/python || (apt -y update && apt install -y python-minimal)