--- # Copyright 2019 Nokia # 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. - include: convert_qcow_raw.yml run_once: True - name: Create vbmc ports for virtual hosts include_tasks: vbmc_port_setup.yml when: virtual_env - name: Setup tmux copy: src: "tmux_setup" dest: "/opt/" - include_tasks: ironic_nodes_create.yml tags: - baremetal-ironic-nodes-create - include_tasks: start_console_logging.yml tags: - baremetal-ironic-nodes-deploy when: virtual_env == false - include_tasks: ironic_nodes_deploy.yml tags: - baremetal-ironic-nodes-deploy when: baremetal_ironic_node_id is defined - name: Set Ironic node in maintenance. os_ironic_node: cloud: default endpoint_type: internal auth_type: password uuid: "{{ironic_node_details.name}}" maintenance: True deploy: False when: - installation_phase != "provisioning-started" - name: Set Ironic node in maintenance. environment: OS_AUTH_TOKEN: "fake-token" IRONIC_URL: "{{ ironic_service_adminurl }}" os_ironic_node: auth: auth_type: 'None' ironic_url: "{{ ironic_service_adminurl }}" uuid: "{{ironic_node_details.name}}" maintenance: True deploy: False when: - installation_phase == "provisioning-started" - include_tasks: stop_console_logging.yml tags: - baremetal-ironic-nodes-deploy when: virtual_env == false