Add 'ANSIBLE_ROLES_PATH' in ansible_env 87/52487/2
authorJingLu5 <lvjing5@huawei.com>
Fri, 23 Feb 2018 01:31:38 +0000 (01:31 +0000)
committerJingLu5 <lvjing5@huawei.com>
Fri, 23 Feb 2018 01:55:53 +0000 (01:55 +0000)
commite73f63767dcba5e3406a8a70a76e36d06fc38479
tree480dc0d51b9f4e1627c0183e88ef9570f93ac34d
parenta134474819400f2f7075d62990899943a06a5086
Add 'ANSIBLE_ROLES_PATH' in ansible_env

JIRA: YARDSTICK-1024

This work adds the 'ANSIBLE_ROLES_PATH' as one of the Ansible environment variables.
This 'ANSIBLE_ROLES_PATH' is set to the roles directory in Yardstick repo.
By adding this variable, Ansible will first searches the local project for a role, then searches the roles_path.
It will let the users of the plugin projects to able to use a relative role path for any of their own roles in ansible playbook.

Change-Id: I0926ab0c0fa5c6cc37c4fe560db5b2aec3fe6eb1
Signed-off-by: JingLu5 <lvjing5@huawei.com>
yardstick/common/ansible_common.py
yardstick/common/constants.py