12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- # Copyright 2022 Dell Inc. or its subsidiaries. All Rights Reserved.
- #
- # Licensed under the Apache License, Version 2.0 (the "License");
- # you may not use this file except in compliance with the License.
- # You may obtain a copy of the License at
- #
- # http://www.apache.org/licenses/LICENSE-2.0
- #
- # Unless required by applicable law or agreed to in writing, software
- # distributed under the License is distributed on an "AS IS" BASIS,
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- # See the License for the specific language governing permissions and
- # limitations under the License.
- ---
- #Tasks for Deploying cobbler on the system
- - name: Check cobbler status on machine
- include_tasks: check_prerequisites.yml
- - name: Multi profile creation
- include_tasks: multi_profile_creation.yml
- when: provision_os_change
- - name: Cobbler pod creation
- block:
- - name: Mount iso image
- include_tasks: mount_iso.yml
- when:
- - not cobbler_image_status
- - name: Modify firewall settings for Cobbler
- include_tasks: firewall_settings.yml
- when:
- - not cobbler_container_status
- - name: Include common variables
- include_vars: ../../control_plane_common/vars/main.yml
- when:
- - not cobbler_container_status
- - name: Internet validation
- include_tasks: ../../control_plane_common/tasks/internet_validation.yml
- when:
- - not cobbler_container_status
- - name: Dhcp Configuration
- include_tasks: dhcp_configure.yml
- when:
- - ( not cobbler_image_status ) or ( backup_map_status ) or ( not cobbler_container_status )
- - name: Provision password validation
- include_tasks: provision_password.yml
- when:
- - ( not cobbler_image_status ) or ( not cobbler_container_status )
- - name: Mapping file validation
- include_tasks: mapping_file.yml
- when:
- - ( not cobbler_image_status ) and ( host_mapping_file ) or ( backup_map_status )
- - name: Cobbler image creation
- include_tasks: cobbler_image.yml
- when:
- - not cobbler_container_status
- - name: Cobbler configuration
- include_tasks: configure_cobbler.yml
- when:
- - not cobbler_config_status
- - name: Cobbler container status message
- block:
- - name: cobbler container running
- debug:
- msg: "{{ message_skipped }}"
- verbosity: 2
- when: cobbler_container_status
- - name: cobbler container not running
- debug:
- msg: "{{ message_installed }}"
- verbosity: 2
- when: not cobbler_container_status
- when: not provision_os_change
|