#  Copyright 2021 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.
---
- name: Mount Path
  set_fact:
    mount_path: "{{ role_path + '/../../..'  }}"

- name: Pre-requisite validation
  import_tasks: pre_requisite.yml

- name: Internet validation
  import_tasks: internet_validation.yml

- name: Common packages installation
  import_tasks: package_installation.yml

- name: Basic Configuration
  import_tasks: fetch_base_inputs.yml

- name: Credentials Configuration
  import_tasks: password_config.yml

- name: omnia inputs validation
  import_tasks: verify_omnia_params.yml

- name: Subnet manager inputs validation
  import_tasks: fetch_sm_inputs.yml
  when: ib_switch_support

- name: Encrypt idrac_tools_vars.yml
  import_tasks: encrypt_idrac_tools_vars.yml

- name: NFS Server setup for offline repo and awx
  import_tasks: nfs_server_setup.yml