angstwad/docker.ubuntu

Docker Installation fails on Ubuntu 16.04

aayushKumarJarvis opened this issue · 1 comments

If we use this role on ubuntu 16.04 boxes. The task Clean previous docker-py package if installing docker. fails. Following is the error

TASK: [docker-new | Clean previous docker-py package if installing docker.] ***
failed: [localhost] => {"cmd": "/usr/bin/pip uninstall -y docker-py", "failed": true}
msg:
:stderr: Cannot uninstall requirement docker-py, not installed

Am I missing something ? Or something needs to be fixed ?

I also have problem running this playbook on Ubuntu 16.04

TASK [angstwad.docker_ubuntu : Fail if not a supported release of Ubuntu] ******
fatal: [xxx.xxx.xxx.xxx]: FAILED! => {"failed": true, "msg": "The conditional check 'ansible_lsb.id|lower == \"ubuntu\" and ansible_distribution_version|version_compare('14.04', '<')' failed. The error was: error while evaluating conditional (ansible_lsb.id|lower == \"ubuntu\" and ansible_distribution_version|version_compare('14.04', '<')): 'ansible_lsb' is undefined\n\nThe error appears to have been in '/private/etc/ansible/roles/angstwad.docker_ubuntu/tasks/main.yml': line 6, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Fail if not a supported release of Ubuntu\n  ^ here\n"}