From ac880484ba558f0e8d0efeb299eb9542e8700b1b Mon Sep 17 00:00:00 2001 From: Jonathan Rosser Date: Thu, 14 May 2020 07:37:18 +0100 Subject: [PATCH] Replace usage of deprecated os_*_facts ansible modules These are changed to os_*_info modules which return their data not as facts but via ansible registered variables. Change-Id: I08ff502e23ff928884ae704b0e226379f17b4faf --- tasks/swift_proxy_hosts.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/swift_proxy_hosts.yml b/tasks/swift_proxy_hosts.yml index 7a701de5..ca3fd72e 100644 --- a/tasks/swift_proxy_hosts.yml +++ b/tasks/swift_proxy_hosts.yml @@ -14,7 +14,7 @@ # limitations under the License. - name: Get Gnocchi project id - os_project_facts: + os_project_info: name: "{{ gnocchi_service_project_name }}" interface: "{{ keystone_service_adminurl }}" verify: "{{ keystone_service_adminuri_insecure }}" @@ -28,7 +28,7 @@ - name: Store Gnocchi project id set_fact: - swift_gnocchi_service_project_id: "{{ keystone_facts.id }}" + swift_gnocchi_service_project_id: "{{ get_gnocchi_project.keystone_facts.id }}" when: - swift_gnocchi_enabled | bool - get_gnocchi_project is success