2015-01-07 18:41:35 +08:00
|
|
|
---
|
2015-07-24 02:01:43 +08:00
|
|
|
- name: create ice package directory
|
2015-09-04 00:18:53 +08:00
|
|
|
file:
|
|
|
|
path: "{{ ceph_stable_ice_temp_path }}"
|
|
|
|
state: directory
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: 0644
|
2015-01-07 18:41:35 +08:00
|
|
|
when: ceph_stable_ice
|
|
|
|
|
2015-07-24 02:01:43 +08:00
|
|
|
- name: get ice packages
|
2015-09-04 00:18:53 +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"
|
2015-01-07 18:41:35 +08:00
|
|
|
when: ceph_stable_ice
|
|
|
|
|
2015-07-24 02:01:43 +08:00
|
|
|
- name: get ice Kernel Modules
|
2015-09-04 00:18:53 +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 }}"
|
2015-01-07 18:41:35 +08:00
|
|
|
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-07-24 02:01:43 +08:00
|
|
|
- name: stat extracted ice repo files
|
2015-09-04 00:18:53 +08:00
|
|
|
stat:
|
|
|
|
path: "{{ ceph_stable_ice_temp_path }}/ice_setup.py"
|
2015-01-07 18:41:35 +08:00
|
|
|
register: repo_exist
|
|
|
|
when: ceph_stable_ice
|
|
|
|
|
2015-07-24 02:01:43 +08:00
|
|
|
- name: extract ice packages
|
2015-09-04 00:18:53 +08:00
|
|
|
shell: tar -xzf ICE-{{ ceph_stable_ice_version }}-{{ ceph_stable_ice_distro }}.tar.gz
|
|
|
|
args:
|
|
|
|
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-07-24 02:01:43 +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
|