2015-01-07 18:41:35 +08:00
|
|
|
---
|
2015-05-16 00:27:41 +08:00
|
|
|
- name: create ICE package directory
|
2015-01-07 18:41:35 +08:00
|
|
|
file: >
|
|
|
|
path={{ ceph_stable_ice_temp_path }}
|
|
|
|
state=directory
|
|
|
|
owner=root
|
|
|
|
group=root
|
|
|
|
mode=0644
|
|
|
|
when: ceph_stable_ice
|
|
|
|
|
2015-05-16 00:27:41 +08:00
|
|
|
- name: get ICE packages
|
2015-01-07 18:41:35 +08:00
|
|
|
get_url: >
|
|
|
|
url_username={{ ceph_stable_ice_user }}
|
|
|
|
url_password={{ ceph_stable_ice_password }}
|
|
|
|
url={{ ceph_stable_ice_url }}/{{ ceph_stable_ice_version }}/ICE-{{ ceph_stable_ice_version }}-{{ ceph_stable_ice_distro }}.tar.gz
|
|
|
|
dest={{ ceph_stable_ice_temp_path }}/ICE-{{ ceph_stable_ice_version }}-{{ ceph_stable_ice_distro }}.tar.gz
|
|
|
|
when: ceph_stable_ice
|
|
|
|
|
2015-05-16 00:27:41 +08:00
|
|
|
- name: get ICE Kernel Modules
|
2015-01-07 18:41:35 +08:00
|
|
|
get_url: >
|
|
|
|
url_username={{ ceph_stable_ice_user }}
|
|
|
|
url_password={{ ceph_stable_ice_password }}
|
|
|
|
url={{ ceph_stable_ice_url }}/{{ ceph_stable_ice_kmod_version }}/{{ item }}
|
|
|
|
dest={{ ceph_stable_ice_temp_path }}
|
|
|
|
with_items:
|
|
|
|
- kmod-libceph-{{ ceph_stable_ice_kmod }}.rpm
|
|
|
|
- kmod-rbd-{{ ceph_stable_ice_kmod }}.rpm
|
2015-06-26 06:26:03 +08:00
|
|
|
when:
|
|
|
|
ceph_stable_ice and
|
|
|
|
ansible_os_family == 'RedHat'
|
2015-01-07 18:41:35 +08:00
|
|
|
|
2015-05-16 00:27:41 +08:00
|
|
|
- name: stat extracted ICE repo files
|
2015-01-07 18:41:35 +08:00
|
|
|
stat: >
|
|
|
|
path={{ ceph_stable_ice_temp_path }}/ice_setup.py
|
|
|
|
register: repo_exist
|
|
|
|
when: ceph_stable_ice
|
|
|
|
|
2015-05-16 00:27:41 +08:00
|
|
|
- name: extract ICE packages
|
2015-03-19 19:21:29 +08:00
|
|
|
shell: >
|
|
|
|
tar -xzf ICE-{{ ceph_stable_ice_version }}-{{ ceph_stable_ice_distro }}.tar.gz
|
|
|
|
chdir={{ ceph_stable_ice_temp_path }}
|
2015-06-26 06:26:03 +08:00
|
|
|
changed_when: false
|
|
|
|
when:
|
|
|
|
ceph_stable_ice and
|
|
|
|
repo_exist.stat.exists == False
|
2015-01-07 18:41:35 +08:00
|
|
|
|
2015-05-16 00:27:41 +08:00
|
|
|
- name: move ICE extracted packages
|
2015-01-07 18:41:35 +08:00
|
|
|
shell: "mv {{ ceph_stable_ice_temp_path }}/ceph/*/* {{ ceph_stable_ice_temp_path }}"
|
2015-06-26 06:26:03 +08:00
|
|
|
changed_when: false
|
|
|
|
when:
|
|
|
|
ceph_stable_ice and
|
|
|
|
repo_exist.stat.exists == False
|