main.yml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. -
  17. - name: Check if IB switch is supported
  18. block:
  19. - name: Check infiniband_container status on machine
  20. include_tasks: check_prerequisites.yml
  21. - name: Include common variables
  22. include_vars: ../../control_plane_common/vars/main.yml
  23. when: not infiniband_container_status
  24. - name: Internet validation
  25. include_tasks: ../../control_plane_common/tasks/internet_validation.yml
  26. when: not infiniband_container_status
  27. - name: Include variable file base_vars.yml
  28. include_vars: ../../../input_params/base_vars.yml
  29. - name: Dhcp Configuration
  30. import_tasks: dhcp_configure.yml
  31. when: (not infiniband_container_image_status)
  32. - name: infiniband_container image creation
  33. import_tasks: infiniband_container_image.yml
  34. when: not infiniband_container_status
  35. - name: infiniband_container configuration
  36. import_tasks: configure_infiniband_container.yml
  37. - name: infiniband_container container status message
  38. block:
  39. - debug:
  40. msg: "{{ infiniband_message_skipped }}"
  41. verbosity: 2
  42. when: infiniband_container_status
  43. - debug:
  44. msg: "{{ infiniband_message_installed }}"
  45. verbosity: 2
  46. when: not infiniband_container_status
  47. tags: install
  48. when: ib_switch_support