main.yml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. # Copyright 2022 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: ../../../input_params/base_vars.yml
  28. - name: Dhcp Configuration
  29. import_tasks: dhcp_configure.yml
  30. when: (not infiniband_container_image_status)
  31. - name: infiniband_container image creation
  32. import_tasks: infiniband_container_image.yml
  33. when: not infiniband_container_status
  34. - name: infiniband_container configuration
  35. import_tasks: configure_infiniband_container.yml
  36. - name: infiniband_container container status message
  37. block:
  38. - name: Infiniband container skipped
  39. debug:
  40. msg: "{{ infiniband_message_skipped }}"
  41. verbosity: 2
  42. when: infiniband_container_status
  43. - name: Infiniband container installed
  44. debug:
  45. msg: "{{ infiniband_message_installed }}"
  46. verbosity: 2
  47. when: not infiniband_container_status
  48. when:
  49. - device_support_status
  50. - ib_switch_support