- name: Install docker
  apt:
    pkg:   '{{ item }}'
    state: present
  with_items:
    - lxc-docker

- name: Install docker
  apt:
    pkg:   '{{ item }}'
    state: latest
  with_items:
    - lxc-docker

Install always the latest version of docker
Install always the latest version of docker
