diff --git a/lib/ansible/module_utils/openstack.py b/lib/ansible/module_utils/openstack.py index afbd8857eb..9cfc6cba0c 100644 --- a/lib/ansible/module_utils/openstack.py +++ b/lib/ansible/module_utils/openstack.py @@ -90,6 +90,9 @@ def openstack_full_argument_spec(**kwargs): api_timeout=dict(default=None, type='int'), endpoint_type=dict( default='public', choices=['public', 'internal', 'admin'] + ), + identity_api_version=dict( + default=None, choices=['2.0', '3'] ) ) spec.update(kwargs) diff --git a/lib/ansible/utils/module_docs_fragments/openstack.py b/lib/ansible/utils/module_docs_fragments/openstack.py index 88aaad1799..ade8aa7135 100644 --- a/lib/ansible/utils/module_docs_fragments/openstack.py +++ b/lib/ansible/utils/module_docs_fragments/openstack.py @@ -93,6 +93,12 @@ options: choices: [public, internal, admin] required: false default: public + identity_api_version: + description: + - The identity API version + choices: [2.0, 3] + required: false + default: None requirements: - python >= 2.7 - shade