mirror of https://github.com/ceph/ceph-ansible.git
34 lines
980 B
YAML
34 lines
980 B
YAML
|
---
|
||
|
- 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
|
||
|
fetch: >
|
||
|
src={{ ceph_stable_rh_storage_iso_path }}
|
||
|
dest={{ ceph_stable_rh_storage_iso_path }}
|
||
|
flat=yes
|
||
|
|
||
|
- 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
|