| - name: Find out hostnames |
| devstack_hostnames: "{{ devstack_hostnames|default([]) + [hostvars[zj_item]['ansible_hostname'] | default('unknown')] }}" |
| loop: "{{ query('inventory_hostnames', 'all,!localhost') }}" |
| ignore_errors: yes # noqa ignore-errors |
| - name: Set migration_source_host in tempest.conf |
| community.general.ini_file: |
| path: "{{ devstack_base_dir }}/tempest/etc/tempest.conf" |
| option: migration_source_host |
| value: "{{ devstack_hostnames[0] }}" |
| - name: Set migration_dest_host in tempest.conf |
| community.general.ini_file: |
| path: "{{ devstack_base_dir }}/tempest/etc/tempest.conf" |
| option: migration_dest_host |
| value: "{{ devstack_hostnames[1] }}" |