kayobe/ansible/overcloud-docker-sdk-upgrade.yml
Mark Goddard b83bb6ed09 Upgrade docker SDK for python during overcloud host upgrade
Kolla-ansible requires use of the docker python package, which is
incompatible with the legacy docker-py python package. We install the
former and remove the latter.
2017-09-18 21:41:48 +01:00

19 lines
547 B
YAML

---
- name: Ensure docker SDK for python is installed
hosts: overcloud
tasks:
# Docker renamed their python SDK from docker-py to docker in the 2.0.0
# release, and also broke backwards compatibility. Kolla-ansible requires
# docker, so ensure it is installed.
- name: Ensure legacy docker-py python package is uninstalled
pip:
name: docker-py
state: absent
become: True
- name: Ensure docker SDK for python is installed
pip:
name: docker
state: latest
become: True