---
- fail:
      msg: "Upgrade is supported only for versions 7, 8, 9 and 10"
  when:
      - undercloud_version|openstack_release not in [8, 9, 10, 11]

- name: Checking overcloud_deploy_file
  stat:
      path: "~/overcloud_deploy.sh"
  register: overcloud_deploy_file

- fail:
      msg: "Overcloud deployment script not found. Expected path: ~/overcloud_deploy.sh "
  when: overcloud_deploy_file.stat.exists == False

---
- fail:
      msg: "Upgrade is supported only for versions 7, 8, 9 and 10"
  when:
      - undercloud_version|openstack_release not in [8, 9, 10, 11]

- name: Checking overcloud_deploy_file
  stat:
      path: "{{ overcloud_deploy_script }}"
  register: overcloud_deploy_file

- fail:
      msg: "Overcloud deployment script not found. Expected path: {{ overcloud_deploy_script }} "
  when: overcloud_deploy_file.stat.exists == False

Use the setting for overcloud deploy path
Use the setting for overcloud deploy path

When the provided script is different than the standard one,
this step is failing. It should be using the right var, and
this path should not be hardcoded.

Change-Id: Ibbf4671040227faa8f2a53a21fb8880c1ea04a28
