--- - name: create red hat storage package directories file: > path={{ item }} state=directory with_items: - "{{ ceph_stable_rh_storage_mount_path }}" - "{{ ceph_stable_rh_storage_repository_path }}" - name: fetch the red hat storage iso from the ansible server copy: > src={{ ceph_stable_rh_storage_iso_path }} dest={{ ceph_stable_rh_storage_iso_path }} - name: mount red hat storage iso file mount: > name={{ ceph_stable_rh_storage_mount_path }} src={{ ceph_stable_rh_storage_iso_path }} fstype=iso9660 state=mounted - name: copy red hat storage iso content shell: cp -r {{ ceph_stable_rh_storage_mount_path }}/* {{ ceph_stable_rh_storage_repository_path }} creates={{ ceph_stable_rh_storage_repository_path }}/README - name: mount red hat storage iso file mount: > name={{ ceph_stable_rh_storage_mount_path }} src={{ ceph_stable_rh_storage_iso_path }} fstype=iso9660 state=unmounted