create role first

This commit is contained in:
Miroslav Suchý 2015-03-12 13:35:11 +00:00
parent 7bdfa2dea3
commit 41bcfd9620

View file

@ -544,6 +544,8 @@
- { name: msuchy, email: 'msuchy@redhat.com', tenant: copr, password: "{{msuchy_password}}", public_key: "{{ lookup('pipe', '/srv/web/infra/ansible/scripts/auth-keys-from-fas msuchy') }}" }
- { name: red, email: 'red@fedoraproject.org', tenant: infrastructure, password: "{{red_password}}", public_key: "{{ lookup('pipe', '/srv/web/infra/ansible/scripts/auth-keys-from-fas red') }}" }
- name: Create role coprdev
- shell: source /root/keystonerc_admin && keystone role-list |grep coprdev || keystone role-create --name coprdev
- name: Assign users to coprdev as secondary tentant
keystone_user:
endpoint="https://{{controller_hostname}}:35357/v2.0"