main.yml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. # Copyright 2020 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 for Deploying cobbler on the system
  16. - name: Configure nic
  17. import_tasks: configure_nic.yml
  18. - name: Check cobbler status on machine
  19. include_tasks: check_prerequisites.yml
  20. - name: Mount iso image
  21. import_tasks: mount_iso.yml
  22. when: not cobbler_image_status
  23. - name: Modify firewall settings for Cobbler
  24. import_tasks: firewall_settings.yml
  25. when: not cobbler_status
  26. - name: Include common variables
  27. include_vars: ../../common/vars/main.yml
  28. when: not cobbler_status
  29. - name: Internet validation
  30. include_tasks: ../../common/tasks/internet_validation.yml
  31. when: not cobbler_status
  32. - name: Provision password validation
  33. import_tasks: provision_password.yml
  34. when: not cobbler_image_status
  35. - name: Cobbler image creation
  36. import_tasks: cobbler_image.yml
  37. when: not cobbler_status
  38. - name: Cobbler configuration
  39. import_tasks: configure_cobbler.yml
  40. when: not cobbler_status
  41. - name: Cobbler container status message
  42. block:
  43. - debug:
  44. msg: "{{ message_skipped }}"
  45. verbosity: 2
  46. when: cobbler_status
  47. - debug:
  48. msg: "{{ message_installed }}"
  49. verbosity: 2
  50. when: not cobbler_status
  51. tags: install