From c31bbc215c2f69f9738350b9e9a592b728d8e12b Mon Sep 17 00:00:00 2001 From: Dmitriy Rabotyagov Date: Mon, 29 Aug 2022 20:14:42 +0200 Subject: [PATCH] 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] https://opendev.org/openstack/ansible-collections-openstack/commit/9272146cf7a7486f6004b52bec420a998e710f45 Depends-On: https://review.opendev.org/c/openstack/openstack-ansible/+/864553 Change-Id: Ic22ec379983e43aa5f2b55fd4543b4aa70762354 --- tasks/octavia_keypair.yml | 2 +- tasks/octavia_post_install.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/octavia_keypair.yml b/tasks/octavia_keypair.yml index 250c1f23..eb60daac 100644 --- a/tasks/octavia_keypair.yml +++ b/tasks/octavia_keypair.yml @@ -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: diff --git a/tasks/octavia_post_install.yml b/tasks/octavia_post_install.yml index 8ff4577b..e5c48ea0 100644 --- a/tasks/octavia_post_install.yml +++ b/tasks/octavia_post_install.yml @@ -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 }}"