Install pip before using it

Fixes: #430

Signed-off-by: Sébastien Han <seb@redhat.com>
pull/435/head
Sébastien Han 2015-11-16 11:47:23 +01:00
parent b93fd938e8
commit fcfac5c1e1
5 changed files with 60 additions and 0 deletions

View File

@ -7,6 +7,18 @@
- /etc/ceph/
- /var/lib/ceph/bootstrap-mds
- name: install pip on debian
apt:
name: pip
state: present
when: ansible_os_family == 'Debian'
- name: install pip on redhat
yum:
name: python-pip
state: present
when: ansible_os_family == 'RedHat'
# NOTE (leseb): for version 1.1.0 because https://github.com/ansible/ansible-modules-core/issues/1227
- name: install docker-py
pip:

View File

@ -9,6 +9,18 @@
- /var/lib/ceph/bootstrap-mds
- /var/lib/ceph/bootstrap-rgw
- name: install pip on debian
apt:
name: pip
state: present
when: ansible_os_family == 'Debian'
- name: install pip on redhat
yum:
name: python-pip
state: present
when: ansible_os_family == 'RedHat'
# NOTE (leseb): for version 1.1.0 because https://github.com/ansible/ansible-modules-core/issues/1227
- name: install docker-py
pip:

View File

@ -7,6 +7,18 @@
- /etc/ceph/
- /var/lib/ceph/bootstrap-osd
- name: install pip on debian
apt:
name: pip
state: present
when: ansible_os_family == 'Debian'
- name: install pip on redhat
yum:
name: python-pip
state: present
when: ansible_os_family == 'RedHat'
# NOTE (leseb): for version 1.1.0 because https://github.com/ansible/ansible-modules-core/issues/1227
- name: install docker-py
pip:

View File

@ -1,4 +1,16 @@
---
- name: install pip on debian
apt:
name: pip
state: present
when: ansible_os_family == 'Debian'
- name: install pip on redhat
yum:
name: python-pip
state: present
when: ansible_os_family == 'RedHat'
# NOTE (leseb): for version 1.1.0 because https://github.com/ansible/ansible-modules-core/issues/1227
- name: install docker-py
pip:

View File

@ -7,6 +7,18 @@
- /etc/ceph/
- /var/lib/ceph/bootstrap-rgw
- name: install pip on debian
apt:
name: pip
state: present
when: ansible_os_family == 'Debian'
- name: install pip on redhat
yum:
name: python-pip
state: present
when: ansible_os_family == 'RedHat'
# NOTE (leseb): for version 1.1.0 because https://github.com/ansible/ansible-modules-core/issues/1227
- name: install docker-py
pip: