Skip to content

Instantly share code, notes, and snippets.

@lozadaOmr
Created January 27, 2017 08:29
Show Gist options
  • Save lozadaOmr/0ed62559bc0fe4c85a935adb85abc0e1 to your computer and use it in GitHub Desktop.
Save lozadaOmr/0ed62559bc0fe4c85a935adb85abc0e1 to your computer and use it in GitHub Desktop.
Pre-installs python2 and Installs Docker
---
- hosts: all
remote_user: root
gather_facts: no
pre_tasks:
- name: 'install python2'
raw: sudo apt-get -y install python-simplejson
tasks:
- name: Install Python
apt: name=python state=present
- name: Install Python-pip
apt: name=python-pip state=present
- name: Install Docker
apt: name=docker.io state=present
- name: Install Docker-compose
shell: pip install docker-compose
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment