main.yml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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 infiniband_container status on machine
  17. include_tasks: check_prerequisites.yml
  18. - name: Include common variables
  19. include_vars: ../../control_plane_common/vars/main.yml
  20. when: not infiniband_container_status
  21. - name: Internet validation
  22. include_tasks: ../../control_plane_common/tasks/internet_validation.yml
  23. when: not infiniband_container_status
  24. #- name: Fetch base inputs
  25. # include_tasks: ../../control_plane_common/tasks/fetch_base_inputs.yml
  26. # when: not infiniband_container_status
  27. - name: Include variable file base_vars.yml
  28. include_vars: "{{ ib_base_file }}"
  29. - name: Dhcp Configuration
  30. import_tasks: dhcp_configure.yml
  31. when: (not infiniband_container_image_status) or ( infiniband_backup_map_status == true)
  32. #- name: Mapping file validation
  33. # import_tasks: mapping_file.yml
  34. # when: (not infiniband_container_image_status) and (mapping_file == true) or ( backup_map_status == true)
  35. - name: infiniband_container image creation
  36. import_tasks: infiniband_container_image.yml
  37. when: not infiniband_container_status
  38. - name: infiniband_container configuration
  39. import_tasks: configure_infiniband_container.yml
  40. - name: infiniband_container container status message
  41. block:
  42. - debug:
  43. msg: "{{ infiniband_message_skipped }}"
  44. verbosity: 2
  45. when: infiniband_container_status
  46. - debug:
  47. msg: "{{ infiniband_message_installed }}"
  48. verbosity: 2
  49. when: not infiniband_container_status
  50. tags: install