Adopt output structure to new collections version

With commit [1] to collection output structure of networks_info module
has been changed. With that we adpot to the new format.

Return values for keypair have also changed

[1] 9272146cf7

Depends-On: https://review.opendev.org/c/openstack/openstack-ansible/+/864553
Change-Id: Ic22ec379983e43aa5f2b55fd4543b4aa70762354
This commit is contained in:
Dmitriy Rabotyagov 2022-08-29 20:14:42 +02:00 committed by Dmitriy Rabotyagov
parent 87e78ee34c
commit c31bbc215c
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@
- name: Write private key locally
copy:
content: "{{ _octavia_keypair.key.private_key }}"
content: "{{ _octavia_keypair['keypair']['private_key'] }}"
dest: "{{ lookup('env', 'HOME') }}/.ssh/{{ octavia_ssh_key_name }}"
delegate_to: localhost
when:

View File

@ -98,7 +98,7 @@
- name: Set Octavia management network UUID fact
set_fact:
octavia_neutron_management_network_uuid: "{{ get_net_info.openstack_networks[0].id }}"
octavia_neutron_management_network_uuid: "{{ get_net_info.networks[0].id }}"
- name: Set octavia_amp_image_owner_id if it is not already set
delegate_to: "{{ octavia_service_setup_host }}"