---
- name: Get Docker release tool key
  apt_key: url="https://get.docker.io/gpg" state=present

- name: Add Docker deb repository
  apt_repository:
    repo="deb https://get.docker.io/ubuntu docker main" 
    state=present 
    update_cache=yes

- name: Install Docker
  apt: pkg=lxc-docker state=installed

- name: install apt packages
  apt: "name='{{ item }}' state=present"
  with_items:
    - git
    - python-pip

- name: install docker-py
  pip: name=docker-py version=0.3.1
# Build and prepare bamboo image



---
- name: Get Docker release tool key
  apt_key: url="https://get.docker.io/gpg" state=present

- name: Add Docker deb repository
  apt_repository:
    repo="deb https://get.docker.io/ubuntu docker main" 
    state=present 
    update_cache=yes

- name: Install Docker
  apt: pkg=lxc-docker state=installed force=yes

- name: install apt packages
  apt: "name='{{ item }}' state=present"
  with_items:
    - git
    - python-pip

- name: install docker-py
  pip: name=docker-py version=0.3.1
# Build and prepare bamboo image



Change docker install to force
Change docker install to force
