2015-07-28 23:57:58 +08:00
|
|
|
---
|
2015-11-16 18:47:23 +08:00
|
|
|
- name: install pip on debian
|
|
|
|
apt:
|
2016-01-28 22:55:53 +08:00
|
|
|
name: python-pip
|
2015-11-16 18:47:23 +08:00
|
|
|
state: present
|
|
|
|
when: ansible_os_family == 'Debian'
|
|
|
|
|
|
|
|
- name: install pip on redhat
|
|
|
|
yum:
|
|
|
|
name: python-pip
|
|
|
|
state: present
|
2016-01-29 02:11:22 +08:00
|
|
|
when:
|
|
|
|
ansible_os_family == 'RedHat' and
|
|
|
|
ansible_pkg_mgr == "yum"
|
|
|
|
|
|
|
|
- name: install pip on redhat
|
|
|
|
dnf:
|
|
|
|
name: python-pip
|
|
|
|
state: present
|
|
|
|
when:
|
|
|
|
ansible_os_family == 'RedHat' and
|
|
|
|
ansible_pkg_mgr == "dnf"
|
2015-11-16 18:47:23 +08:00
|
|
|
|
2015-07-28 23:57:58 +08:00
|
|
|
# NOTE (leseb): for version 1.1.0 because https://github.com/ansible/ansible-modules-core/issues/1227
|
|
|
|
- name: install docker-py
|
2015-10-19 11:28:48 +08:00
|
|
|
pip:
|
|
|
|
name: docker-py
|
|
|
|
version: 1.1.0
|