# A question regarding openstack module authentication

**URL:** <https://forum.ansible.com/t/a-question-regarding-openstack-module-authentication/22792>\
**Category:** Ansible Project\
**Created:** [October 14, 2016, 5:28pm UTC](https://forum.ansible.com/t/a-question-regarding-openstack-module-authentication/22792 "2016-10-14T17:28:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mihkel\_Parna](https://avatars.discourse-cdn.com/v4/letter/m/8baadc/32.png) [@Mihkel\_Parna](https://forum.ansible.com/u/Mihkel_Parna)\
**Post date:** [October 14, 2016, 5:28pm UTC](https://forum.ansible.com/t/a-question-regarding-openstack-module-authentication/22792/1 "2016-10-14T17:28:23Z")

</div>

Hello,

I’m trying to configure keystone domains/projects/users through Ansible using os\_keystone\_domain/os\_keystone\_project & os\_user modules but I’m having difficultys understanding the authentication method.

I have preset j2 template that’s placed on the host(admin-openrc) and all of the information is also defined as variables that get included into the playbook but there does not seem to be a way to use those.

As far as i know i need to only use the admin\_token in keystone and the default ‘admin’ user but I cant parse them into the playbook. What I’ve got so far is:

- name: Keystone domain creation  
os\_keystone\_domain:  
state: present  
name: ‘{{ openstack\_domain }}’  
description: Admin domain

Is there a easy way to pass admin/admin\_token.  
Would really appreciate if someone could point me in the right direction.
