--- - 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 shell: > tar -xzf ICE-{{ ceph_stable_ice_version }}-{{ ceph_stable_ice_distro }}.tar.gz chdir={{ ceph_stable_ice_temp_path }} when: ceph_stable_ice and repo_exist.stat.exists == False changed_when: False - 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 changed_when: False