mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
cdb53ff1a4
* Restore behavior for detecting only localhost, and no limit match. Fixes #52152 * Add test for non-matching limit
11 lines
288 B
Bash
Executable file
11 lines
288 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -x
|
|
|
|
# https://github.com/ansible/ansible/issues/52152
|
|
# Ensure that non-matching limit causes failure with rc 1
|
|
ansible-playbook -i ../../inventory --limit foo playbook.yml
|
|
if [ "$?" != "1" ]; then
|
|
echo "Non-matching limit should cause failure"
|
|
exit 1
|
|
fi
|