Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save igun/1640d2c9f5650bd63a8b0ecd11cfa9fe to your computer and use it in GitHub Desktop.
Save igun/1640d2c9f5650bd63a8b0ecd11cfa9fe to your computer and use it in GitHub Desktop.

Revisions

  1. @gwillem gwillem created this gist Jun 16, 2016.
    10 changes: 10 additions & 0 deletions ansible-bootstrap-ubuntu-16.04.yml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    # 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)