Skip to content

itldo/ansible_test_var

Repository files navigation

A quick and dirty, crude set of integration tests to demonstrate and help define the behavior of ansible inventory host variables.

In the behavior of hosts mentioned explicitly among differnet inventory sources doesn't appear to be defined.

./run_all

will create and inventories/ directory containing inventory subdirs used as fixtures.

Wading through the example_results currently shows inconsistencies between:

  • ansible (ADHOC) and ansible-playbook
  • top-level job variables and hostvars[hostname]
  • variables defined in dynamic inventories vs static (e.g. variables from dynamic inventories can make it into hostvars[hostname] via magic variables).

TODO

  • implement the driver in ansible itself (although it is awkward to get stdoutput and variables out of an ansible processes).

About

A few crude integration tests demonstrating ansible's inventory host variable behavior

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published