diff --git a/tasks/octavia_amp_image.yml b/tasks/octavia_amp_image.yml index 5fe617ef..ebc00fd3 100644 --- a/tasks/octavia_amp_image.yml +++ b/tasks/octavia_amp_image.yml @@ -47,7 +47,7 @@ - octavia_download_result is changed block: - name: Get current image id - os_image_facts: + os_image_info: auth: auth_url: "{{ keystone_service_adminurl }}" username: "{{ octavia_service_user_name }}" @@ -59,8 +59,8 @@ image: amphora-x64-haproxy interface: admin verify: "{{ not keystone_service_adminuri_insecure }}" - register: get_image_facts - until: get_image_facts is success + register: get_image_info + until: get_image_info is success retries: 5 delay: 10 @@ -90,7 +90,7 @@ project_domain_name: "{{ octavia_service_project_domain_id }}" state: absent region_name: "{{ octavia_service_region }}" - name: "{{ openstack_image.id }}" + name: "{{ get_image_info.openstack_image.id }}" interface: admin verify: "{{ not keystone_service_adminuri_insecure }}" register: remove_old_image diff --git a/tasks/octavia_post_install.yml b/tasks/octavia_post_install.yml index dcf8a323..9f1c756b 100644 --- a/tasks/octavia_post_install.yml +++ b/tasks/octavia_post_install.yml @@ -47,7 +47,7 @@ - octavia_nova_flavor_uuid is not defined block: - name: Get Octavia flavor details - os_flavor_facts: + os_flavor_info: auth: auth_url: "{{ keystone_service_adminurl }}" username: "{{ octavia_service_user_name }}" @@ -59,15 +59,15 @@ name: "{{ octavia_amp_flavor_name }}" interface: admin verify: "{{ not keystone_service_adminuri_insecure }}" - register: get_flavor_facts - until: get_flavor_facts is success + register: get_flavor_info + until: get_flavor_info is success retries: 5 vars: ansible_python_interpreter: "{{ octavia_bin }}/python" - name: Set Octavia flavor UUID fact set_fact: - octavia_nova_flavor_uuid: "{{ openstack_flavors[0].id }}" + octavia_nova_flavor_uuid: "{{ get_flavor_info.openstack_flavors[0].id }}" - name: Set octavia_neutron_management_network_uuid if it is not already set when: @@ -75,7 +75,7 @@ - octavia_neutron_management_network_name is defined block: - name: Get octavia management network details - os_networks_facts: + os_networks_info: auth: auth_url: "{{ keystone_service_adminurl }}" username: "{{ octavia_service_user_name }}" @@ -87,8 +87,8 @@ name: "{{ octavia_neutron_management_network_name }}" interface: admin verify: "{{ not keystone_service_adminuri_insecure }}" - register: get_net_facts - until: get_net_facts is success + register: get_net_info + until: get_net_info is success retries: 5 delay: 10 vars: @@ -96,7 +96,7 @@ - name: Set Octavia management network UUID fact set_fact: - octavia_neutron_management_network_uuid: "{{ openstack_networks[0].id }}" + octavia_neutron_management_network_uuid: "{{ get_net_info.openstack_networks[0].id }}" - name: Drop octavia Config(s) config_template: @@ -114,4 +114,4 @@ config_type: "ini" notify: - Restart octavia services - - Restart uwsgi services \ No newline at end of file + - Restart uwsgi services