Move dynamic rolename into test.yaml

Change-Id: I187b73aad550f01711db84aff9d46234a216e15e
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2015-11-18 21:03:59 -05:00
parent b611a875eb
commit 27d3428548
2 changed files with 3 additions and 1 deletions

View File

@ -13,5 +13,7 @@
# under the License. # under the License.
--- ---
- hosts: localhost - hosts: localhost
vars:
rolename: "{{ lookup('pipe', 'pwd') | dirname | basename }}"
roles: roles:
- "{{ rolename }}" - "{{ rolename }}"

View File

@ -20,7 +20,7 @@ commands =
[testenv:ansible-functional] [testenv:ansible-functional]
commands = commands =
ansible-playbook -i tests/inventory tests/test.yaml -e "rolename={toxinidir}" ansible-playbook -i tests/inventory tests/test.yaml
passenv = HOME passenv = HOME
setenv = setenv =
ANSIBLE_CONFIG = {toxinidir}/tests/ansible.cfg ANSIBLE_CONFIG = {toxinidir}/tests/ansible.cfg