mirror of
https://github.com/ansible/awx.git
synced 2026-02-26 15:36:04 -03:30
Fail inventory updates with unmatched limits (#13726)
This commit is contained in:
committed by
Rick Elrod
parent
84edbed5ec
commit
be5a2bbe61
@@ -38,6 +38,8 @@ STANDARD_INVENTORY_UPDATE_ENV = {
|
|||||||
'ANSIBLE_INVENTORY_EXPORT': 'True',
|
'ANSIBLE_INVENTORY_EXPORT': 'True',
|
||||||
# Redirecting output to stderr allows JSON parsing to still work with -vvv
|
# Redirecting output to stderr allows JSON parsing to still work with -vvv
|
||||||
'ANSIBLE_VERBOSE_TO_STDERR': 'True',
|
'ANSIBLE_VERBOSE_TO_STDERR': 'True',
|
||||||
|
# if ansible-inventory --limit is used for an inventory import, unmatched should be a failure
|
||||||
|
'ANSIBLE_HOST_PATTERN_MISMATCH': 'error',
|
||||||
}
|
}
|
||||||
CAN_CANCEL = ('new', 'pending', 'waiting', 'running')
|
CAN_CANCEL = ('new', 'pending', 'waiting', 'running')
|
||||||
ACTIVE_STATES = CAN_CANCEL
|
ACTIVE_STATES = CAN_CANCEL
|
||||||
|
|||||||
Reference in New Issue
Block a user