main.yml 2.3 KB

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