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
This commit is contained in:
parent
5c9bf35eea
commit
ac880484ba
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user