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
|
|
|
|
2016-02-08 05:30:32 +08:00
|
|
|
- name: install pip and docker on ubuntu
|
2015-11-16 18:47:23 +08:00
|
|
|
apt:
|
2016-02-08 05:30:32 +08:00
|
|
|
name: "{{ item }}"
|
2015-11-16 18:47:23 +08:00
|
|
|
state: present
|
2016-02-08 05:30:32 +08:00
|
|
|
update_cache: yes
|
|
|
|
with_items:
|
|
|
|
- python-pip
|
|
|
|
- docker
|
|
|
|
- docker.io
|
|
|
|
when: ansible_distribution == 'Ubuntu'
|
2015-11-16 18:47:23 +08:00
|
|
|
|
2016-02-08 05:30:32 +08:00
|
|
|
- name: install pip and docker on debian
|
|
|
|
apt:
|
|
|
|
name: "{{ item }}"
|
|
|
|
state: present
|
|
|
|
update_cache: yes
|
|
|
|
with_items:
|
|
|
|
- python-pip
|
|
|
|
- docker-engine
|
|
|
|
when: ansible_distribution == 'Debian'
|
|
|
|
|
|
|
|
- name: install pip and docker on redhat
|
2015-11-16 18:47:23 +08:00
|
|
|
yum:
|
2016-02-08 05:30:32 +08:00
|
|
|
name: "{{ item }}"
|
2015-11-16 18:47:23 +08:00
|
|
|
state: present
|
2016-02-08 05:30:32 +08:00
|
|
|
with_items:
|
|
|
|
- python-pip
|
|
|
|
- docker-engine
|
2016-01-29 02:11:22 +08:00
|
|
|
when:
|
|
|
|
ansible_os_family == 'RedHat' and
|
|
|
|
ansible_pkg_mgr == "yum"
|
|
|
|
|
2016-02-08 05:30:32 +08:00
|
|
|
- name: install pip and docker on redhat
|
2016-01-29 02:11:22 +08:00
|
|
|
dnf:
|
2016-02-08 05:30:32 +08:00
|
|
|
name: "{{ item }}"
|
2016-01-29 02:11:22 +08:00
|
|
|
state: present
|
2016-02-08 05:30:32 +08:00
|
|
|
with_items:
|
|
|
|
- python-pip
|
|
|
|
- docker-engine
|
2016-01-29 02:11:22 +08:00
|
|
|
when:
|
|
|
|
ansible_os_family == 'RedHat' and
|
|
|
|
ansible_pkg_mgr == "dnf"
|
2015-11-16 18:47:23 +08:00
|
|
|
|
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
|