2015-01-07 18:41:35 +08:00
|
|
|
---
|
|
|
|
- name: Create ICE package directory
|
|
|
|
file: >
|
|
|
|
path={{ ceph_stable_ice_temp_path }}
|
|
|
|
state=directory
|
|
|
|
owner=root
|
|
|
|
group=root
|
|
|
|
mode=0644
|
|
|
|
when: ceph_stable_ice
|
|
|
|
|
|
|
|
- name: Get ICE packages
|
|
|
|
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
|
|
|
|
|
|
|
|
- name: Get ICE Kernel Modules
|
|
|
|
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
|
|
|
|
when: ceph_stable_ice and ansible_os_family == 'RedHat'
|
|
|
|
|
|
|
|
- name: Stat extracted ICE repo files
|
|
|
|
stat: >
|
|
|
|
path={{ ceph_stable_ice_temp_path }}/ice_setup.py
|
|
|
|
register: repo_exist
|
|
|
|
when: ceph_stable_ice
|
|
|
|
|
|
|
|
- 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-01-07 18:41:35 +08:00
|
|
|
when: ceph_stable_ice and repo_exist.stat.exists == False
|
2015-04-09 00:46:54 +08:00
|
|
|
changed_when: False
|
2015-01-07 18:41:35 +08:00
|
|
|
|
|
|
|
- name: Move ICE extracted packages
|
|
|
|
shell: "mv {{ ceph_stable_ice_temp_path }}/ceph/*/* {{ ceph_stable_ice_temp_path }}"
|
|
|
|
when: ceph_stable_ice and repo_exist.stat.exists == False
|
2015-04-09 00:46:54 +08:00
|
|
|
changed_when: False
|