Skip to content

Releases: wangxin/ansible-host

Release list

v0.1.0

Choose a tag to compare

@wangxin wangxin released this 12 Jun 06:45
a2cec91

First beta release.

Fixed

  • extra_vars no longer leak across instances. Ansible's load_extra_vars() memoizes its dict and VariableManager held it by reference, so update_extra_vars / the hostvars= constructor path mutated process-global state visible to every other instance. Each instance now copies its own extra_vars.
  • build_task used == True for the legacy module_ignore_errors kwarg, which wrongly accepted truthy non-bools like 1 (since 1 == True). It now uses is True so only the literal bool opts in.

Changed

  • __version__ is now derived from installed package metadata via importlib.metadata instead of a hardcoded string, so it stays in sync with pyproject.toml automatically.
  • Operating System classifier widened from POSIX :: Linux to POSIX to match the documented support range (Linux, macOS, WSL).
  • Added Changelog URL 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 legacy module_ignore_errors kwarg, string-args guidance, and gather_facts.
  • Tier-2 integration tests over a real SSH transport (ssh marker) against a throwaway containerized sshd in tests/ssh/; auto-skips when no target is configured. New test-ssh CI job runs them.

PyPI: https://pypi.org/project/ansible-host/0.1.0/