---
# Non local deployments by quickstart
- name: Install delorian repos
  hosts: undercloud
  any_errors_fatal: true
  gather_facts: true
  become: true
  vars_files:
    - ../vars/undercloud-traas.yaml
  roles:
    - {role: repo-setup,  when: configure_repos|bool}

- name: Install the client
  hosts: undercloud
  any_errors_fatal: true
  gather_facts: false
  become: true
  tasks:
    - package:
        name: python-tripleoclient

- name: Upload custom tht and prepare networking configs
  hosts: undercloud
  any_errors_fatal: true
  gather_facts: false
  vars_files:
    - ../vars/undercloud-traas.yaml
    - ../vars/undercloud-networking.yaml
  become: true
  roles:
    - role: overcloud-prep-config
      when: deployed_server


- name: Install the undercloud (oooq-extras)
  hosts: undercloud
  any_errors_fatal: true
  gather_facts: false
  become: true
  vars_files:
    - ../vars/undercloud-traas.yaml
    - ../vars/undercloud-networking.yaml
  roles:
    - undercloud-deploy

---
# Non local deployments by quickstart
- name: Install delorian repos
  hosts: undercloud
  any_errors_fatal: true
  gather_facts: true
  become: true
  vars_files:
    - ../vars/undercloud-traas.yaml
  roles:
    - {role: repo-setup,  when: configure_repos|bool}

- name: Install the client
  hosts: undercloud
  any_errors_fatal: true
  gather_facts: false
  become: true
  tasks:
    - package:
        name: python-tripleoclient

- name: Upload custom tht and prepare networking configs
  hosts: undercloud
  any_errors_fatal: true
  gather_facts: false
  vars_files:
    - ../vars/undercloud-traas.yaml
    - ../vars/undercloud-networking.yaml
  become: true
  roles:
    - role: overcloud-prep-config
      when: deployed_server


- name: Install the undercloud (oooq-extras)
  hosts: undercloud
  any_errors_fatal: true
  gather_facts: false
  become: true
  vars_files:
    - ../vars/undercloud-traas.yaml
    - ../vars/undercloud-networking.yaml
  roles:
    - undercloud-deploy

#FIXME(bogdando) remove then https://review.openstack.org/#/c/524187/ merged
- name: Apply w/a for bug/1735425
  hosts: undercloud
  any_errors_fatal: true
  gather_facts: false
  become: true
  tasks:
    - when: deployed_server
      shell: >-
        cp -fR /etc/iscsi/* /var/lib/config-data/puppet-generated/iscsid/;
        cp -f /etc/iscsi/.initiator_reset \
        /var/lib/config-data/puppet-generated/iscsid/
      ignore_errors: true

Put back a w/a for 524187
Put back a w/a for 524187

It has yet to be (e)merged

Signed-off-by: Bogdan Dobrelya <62b3a3e71fe69d786a0eb2bf561b6ce08e31d2cc@mail.ru>
