Guest User

Untitled

a guest
Dec 9th, 2016
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. # Add this snippet to the top of your playbook.
  2. # It will install python2 if missing (but checks first so no expensive repeated apt updates)
  3. # gwillem@gmail.com
  4.  
  5. - hosts: all
  6. gather_facts: False
  7.  
  8. tasks:
  9. - name: install python 2
  10. raw: test -e /usr/bin/python || (apt -y update && apt install -y python-minimal)
Add Comment
Please, Sign In to add comment