main.yml 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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: "{{ base_mngmnt_file }}"
  29. - name: Dhcp Configuration
  30. import_tasks: dhcp_configure.yml
  31. when: (not mngmnt_network_container_image_status) or ( backup_mngmnt_map_status)
  32. - name: Mapping file validation
  33. import_tasks: mapping_file.yml
  34. when: (not mngmnt_network_container_image_status) and (mngmnt_mapping_file_path) or ( backup_mngmnt_map_status)
  35. - name: mngmnt_network_container image creation
  36. import_tasks: mngmnt_network_container_image.yml
  37. when: not mngmnt_network_container_status
  38. - name: mngmnt_network_container configuration
  39. import_tasks: configure_mngmnt_network_container.yml
  40. - name: mngmnt_network_container container status message
  41. block:
  42. - name: management network container running
  43. debug:
  44. msg: "{{ message_skipped }}"
  45. verbosity: 2
  46. when: mngmnt_network_container_status
  47. - name: management network container not running
  48. debug:
  49. msg: "{{ message_installed }}"
  50. verbosity: 2
  51. when: not mngmnt_network_container_status
  52. tags: install