ceph-ansible/roles/ceph-rgw/tasks/docker/pre_requisite.yml

27 lines
560 B
YAML
Raw Normal View History

---
- name: create rgw bootstrap directory
2015-10-19 11:19:31 +08:00
file:
path: "{{ item }}"
2015-10-19 11:19:31 +08:00
state: directory
with_items:
- /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
2015-10-19 11:19:31 +08:00
pip:
name: docker-py
version: 1.1.0