main.yml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. # Copyright 2021 Dell Inc. or its subsidiaries. All Rights Reserved.
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14. ---
  15. # Tasks file for infiniband
  16. - name: Check if IB switch is supported
  17. block:
  18. - name: Check infiniband_container status on machine
  19. include_tasks: check_prerequisites.yml
  20. - name: Include common variables
  21. include_vars: ../../control_plane_common/vars/main.yml
  22. when: not infiniband_container_status
  23. - name: Internet validation
  24. include_tasks: ../../control_plane_common/tasks/internet_validation.yml
  25. when: not infiniband_container_status
  26. - name: Include variable file base_vars.yml
  27. include_vars: "{{ base_file }}"
  28. - name: Dhcp Configuration
  29. import_tasks: dhcp_configure.yml
  30. when: (not infiniband_container_image_status) or ( infiniband_backup_map_status == true)
  31. #- name: Mapping file validation
  32. # import_tasks: mapping_file.yml
  33. # when: (not infiniband_container_image_status) and (mapping_file == true) or ( backup_map_status == true)
  34. - name: infiniband_container image creation
  35. import_tasks: infiniband_container_image.yml
  36. when: not infiniband_container_status
  37. - name: infiniband_container configuration
  38. import_tasks: configure_infiniband_container.yml
  39. - name: infiniband_container container status message
  40. block:
  41. - debug:
  42. msg: "{{ infiniband_message_skipped }}"
  43. verbosity: 2
  44. when: infiniband_container_status
  45. - debug:
  46. msg: "{{ infiniband_message_installed }}"
  47. verbosity: 2
  48. when: not infiniband_container_status
  49. tags: install
  50. when: ib_switch_support