mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
342 B
Bash
16 lines
342 B
Bash
4 years ago
|
#!/usr/bin/env bash
|
||
|
|
||
|
set -eux
|
||
|
|
||
|
# Various simple role scenarios
|
||
|
ansible-playbook test.yml -i ../../inventory "$@"
|
||
|
|
||
|
# More complex role test
|
||
|
ansible-playbook test_complex_role_fails.yml -i ../../inventory "$@"
|
||
|
|
||
|
# Test play level role will fail
|
||
|
set +e
|
||
|
ansible-playbook test_play_level_role_fails.yml -i ../../inventory "$@"
|
||
|
test $? -ne 0
|
||
|
set -e
|