Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
# tasks file for common
- name: install Python 2.x
raw: which python || sudo apt-get update && sudo apt-get install -qq -y python-simplejson
register: python_check
changed_when: not python_check.stdout is search('/usr/bin/python')
- name: install pip
name: python-pip
state: present
update_cache: yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment