Replace Module

Modified the file to use the os_project module instead
of the keystone module

Change-Id: I4db1dfa9057b3ce48775f5519a843edbc5716d3e
This commit is contained in:
Kanishk Godha 2019-05-02 18:53:24 +05:30 committed by Dmitriy Rabotyagov (noonedeadpunk)
parent c1bdbfbb14
commit f52352a493
1 changed files with 4 additions and 8 deletions

View File

@ -14,14 +14,10 @@
# limitations under the License.
- name: Get Gnocchi project id
keystone:
command: get_project
tenant_name: "{{ gnocchi_service_project_name }}"
endpoint: "{{ keystone_service_adminurl }}"
login_user: "{{ keystone_admin_user_name }}"
login_password: "{{ keystone_auth_admin_password }}"
login_project_name: "{{ keystone_admin_tenant_name }}"
insecure: "{{ keystone_service_adminuri_insecure }}"
os_project_facts:
name: "{{ gnocchi_service_project_name }}"
interface: "{{ keystone_service_adminurl }}"
verify: "{{ keystone_service_adminuri_insecure }}"
register: get_gnocchi_project
until: get_gnocchi_project is success
retries: 5