main.yml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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 mngmnt_network
  16. - name: Check mngmnt_network_container status on machine
  17. include_tasks: check_prerequisites.yml
  18. - name: Modify firewall settings for mngmnt_network_container
  19. import_tasks: firewall_settings.yml
  20. when: not mngmnt_network_container_status
  21. - name: Include common variables
  22. include_vars: ../../control_plane_common/vars/main.yml
  23. when: not mngmnt_network_container_status
  24. - name: Internet validation
  25. include_tasks: ../../control_plane_common/tasks/internet_validation.yml
  26. when: not mngmnt_network_container_status
  27. - name: Include variable file base_vars.yml
  28. include_vars: "{{ mngmnt_base_file }}"
  29. #- name: Fetch base inputs
  30. # include_tasks: ../../control_plane_common/tasks/fetch_base_inputs.yml
  31. # when: not mngmnt_network_container_status
  32. - name: Dhcp Configuration
  33. import_tasks: dhcp_configure.yml
  34. when: (not mngmnt_network_container_image_status) or ( backup_map_status == true)
  35. #- name: Mapping file validation
  36. # import_tasks: mapping_file.yml
  37. # when: (not mngmnt_network_container_image_status) and (mapping_file == true) or ( backup_map_status == true)
  38. - name: mngmnt_network_container image creation
  39. import_tasks: mngmnt_network_container_image.yml
  40. when: not mngmnt_network_container_status
  41. - name: mngmnt_network_container configuration
  42. import_tasks: configure_mngmnt_network_container.yml
  43. - name: mngmnt_network_container container status message
  44. block:
  45. - debug:
  46. msg: "{{ message_skipped }}"
  47. verbosity: 2
  48. when: mngmnt_network_container_status
  49. - debug:
  50. msg: "{{ message_installed }}"
  51. verbosity: 2
  52. when: not mngmnt_network_container_status
  53. tags: install