2015-07-28 23:15:19 +08:00
|
|
|
---
|
|
|
|
- name: create mds bootstrap directory
|
2015-10-19 10:56:02 +08:00
|
|
|
file:
|
2015-10-20 23:05:34 +08:00
|
|
|
path: "{{ item }}"
|
2015-10-19 10:56:02 +08:00
|
|
|
state: directory
|
2015-10-20 23:05:34 +08:00
|
|
|
with_items:
|
|
|
|
- /etc/ceph/
|
|
|
|
- /var/lib/ceph/bootstrap-mds
|
2015-07-28 23:15:19 +08:00
|
|
|
|
2015-11-16 18:47:23 +08:00
|
|
|
- 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'
|
|
|
|
|
2015-07-28 23:15:19 +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 10:56:02 +08:00
|
|
|
pip:
|
|
|
|
name: docker-py
|
|
|
|
version: 1.1.0
|