From e564944c5b5189db768a10a06ff26d0f63a56f6f Mon Sep 17 00:00:00 2001 From: Alex Willmer Date: Thu, 9 Jan 2025 14:02:22 +0000 Subject: [PATCH] tests: Stricter playbook and inventory parsing --- tests/ansible/ansible.cfg | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/ansible/ansible.cfg b/tests/ansible/ansible.cfg index 37edfd94..48a4eec3 100644 --- a/tests/ansible/ansible.cfg +++ b/tests/ansible/ansible.cfg @@ -10,6 +10,7 @@ callbacks_enabled = callback_whitelist = profile_tasks, timer +duplicate_dict_key = error inventory = hosts gathering = explicit strategy_plugins = ../../ansible_mitogen/plugins/strategy @@ -46,9 +47,13 @@ timeout = 30 host_key_checking = False [inventory] +# Fatal error if any inventory source is unparsed by every available plugin. any_unparsed_is_failed = true +# Fatal error if no inventory sources have a match for a host pattern. host_pattern_mismatch = error ignore_extensions = ~, .bak, .disabled +# Fatal error if no inventory sources are successfully parsed. +unparsed_is_failed = true [callback_profile_tasks] task_output_limit = 10