nfs.yml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. ---
  2. # Tasks to statically provision NFS volumes
  3. # Include if not using dynamic volume provisioning
  4. - name: Setting up NFS storage
  5. block:
  6. - name: Include the NFS Setup role tasks
  7. import_role:
  8. role: openshift_nfs
  9. tasks_from: setup
  10. vars:
  11. l_nfs_base_dir: "{{ openshift_management_storage_nfs_base_dir }}"
  12. - name: Create the App export
  13. import_role:
  14. role: openshift_nfs
  15. tasks_from: create_export
  16. vars:
  17. l_nfs_base_dir: "{{ openshift_management_storage_nfs_base_dir }}"
  18. l_nfs_export_config: "{{ openshift_management_flavor_short }}"
  19. l_nfs_export_name: "{{ openshift_management_flavor_short }}-app"
  20. l_nfs_options: "*(rw,no_root_squash,no_wdelay)"
  21. - name: Create the DB export
  22. import_role:
  23. role: openshift_nfs
  24. tasks_from: create_export
  25. vars:
  26. l_nfs_base_dir: "{{ openshift_management_storage_nfs_base_dir }}"
  27. l_nfs_export_config: "{{ openshift_management_flavor_short }}"
  28. l_nfs_export_name: "{{ openshift_management_flavor_short }}-db"
  29. l_nfs_options: "*(rw,no_root_squash,no_wdelay)"
  30. when:
  31. - openshift_management_app_template in ['miq-template', 'cfme-template']
  32. delegate_to: "{{ openshift_management_nfs_server }}"