Created
June 16, 2016 21:59
-
Star
(275)
You must be signed in to star a gist -
Fork
(38)
You must be signed in to fork a gist
-
-
Save gwillem/4ba393dceb55e5ae276a87300f6b8e6f to your computer and use it in GitHub Desktop.
Revisions
-
gwillem created this gist
Jun 16, 2016 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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)