blob: 61470ce8f0f8179f0c77e884a0584c291f2ee55d [file] [log] [blame]
Scott Bakerb63ea792016-08-11 10:24:48 -07001---
2- hosts: 127.0.0.1
3 connection: local
4 tasks:
5 {% if delete -%}
6 - keystone_user: endpoint={{ endpoint }} login_user={{ admin_user }} login_password={{ admin_password }} login_tenant_name={{ admin_tenant }} tenant={{ tenant }} tenant_description="{{ tenant_description }}" state=absent
7 {% else -%}
8 - keystone_user: endpoint={{ endpoint }} login_user={{ admin_user }} login_password={{ admin_password }} login_tenant_name={{ admin_tenant }} tenant={{ tenant }} tenant_description="{{ tenant_description }}"
9 {% for role in roles %}
10 - keystone_user: endpoint={{ endpoint }} login_user={{ admin_user }} login_password={{ admin_password }} login_tenant_name={{ admin_tenant }} user="{{ name }}" role={{ role }} tenant={{ tenant }}
11 {% endfor %}
12 {% endif %}