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

37 lines
757 B
YAML
Raw Normal View History

---
- name: create osd bootstrap directory
2015-10-19 09:24:47 +08:00
file:
path: "{{ item }}"
2015-10-19 09:24:47 +08:00
state: directory
with_items:
- /etc/ceph/
- /var/lib/ceph/bootstrap-osd
- name: install pip on debian
apt:
name: python-pip
state: present
when: ansible_os_family == 'Debian'
- name: install pip on redhat
yum:
name: python-pip
state: present
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"
# NOTE (leseb): for version 1.1.0 because https://github.com/ansible/ansible-modules-core/issues/1227
- name: install docker-py
2015-10-19 09:24:47 +08:00
pip:
name: docker-py
version: 1.1.0