Move dynamic rolename into test.yaml
Change-Id: I187b73aad550f01711db84aff9d46234a216e15e Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
parent
b611a875eb
commit
27d3428548
@ -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 }}"
|
||||||
|
2
tox.ini
2
tox.ini
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user