mirror of https://github.com/ansible/ansible.git
* Restore behavior for detecting only localhost, and no limit match. Fixes #52152 * Add test for non-matching limitpull/52184/head
parent
847d089d6b
commit
cdb53ff1a4
@ -0,0 +1 @@
|
||||
shippable/posix/group3
|
@ -0,0 +1,4 @@
|
||||
- hosts: all
|
||||
gather_facts: false
|
||||
tasks:
|
||||
- ping:
|
@ -0,0 +1,11 @@
|
||||
#!/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
|
Loading…
Reference in New Issue