Releases: wangxin/ansible-host
Releases · wangxin/ansible-host
Release list
v0.1.0
First beta release.
Fixed
extra_varsno longer leak across instances. Ansible'sload_extra_vars()memoizes its dict andVariableManagerheld it by reference, soupdate_extra_vars/ thehostvars=constructor path mutated process-global state visible to every other instance. Each instance now copies its ownextra_vars.build_taskused== Truefor the legacymodule_ignore_errorskwarg, which wrongly accepted truthy non-bools like1(since1 == True). It now usesis Trueso only the literal bool opts in.
Changed
__version__is now derived from installed package metadata viaimportlib.metadatainstead of a hardcoded string, so it stays in sync withpyproject.tomlautomatically.Operating Systemclassifier widened fromPOSIX :: LinuxtoPOSIXto match the documented support range (Linux, macOS, WSL).- Added
ChangelogURL to[project.urls](linked from PyPI sidebar).
Added
- Variable-access API documentation and tests:
get_host_var/get_visible_var,host_vars/visible_vars,extra_vars/update_extra_vars, covering host/group/extra precedence and template rendering. - Edge-case test suite: cardinality/inventory errors, multi-task and multi-host failure aggregation, unreachable hosts,
NoTasksError, the legacymodule_ignore_errorskwarg, string-args guidance, andgather_facts. - Tier-2 integration tests over a real SSH transport (
sshmarker) against a throwaway containerized sshd intests/ssh/; auto-skips when no target is configured. Newtest-sshCI job runs them.