openstack-ansible/releasenotes/notes/config_check_argument-5a1126c779e3e8f5.yaml
Nolan Brubaker d68e65bfdd Add an inventory config check option
Previously there was no way to do a 'dry run' against a set of inventory
configuration files without actually writing the full inventory
structure to disk.

This change adds a simple check flag to the script, allowing users to
pre-validate their configurations prior to executing the Ansible
playbooks. No syntax validation happens against the YAML files; rather,
the dynamic_inventory.py script is executed and builds a full inventory
in memory, but does not write any output.

Currently, this is meant as a starting point. Further validation can
build from here, but the flag is largely meant to check for known
exceptions/errors early.

Change-Id: Ic58566ee124c824c8bba549ade46bce5c268905a
2016-08-20 21:02:01 +00:00

8 lines
308 B
YAML

---
features:
- The `dynamic_inventory.py` file now takes a new argument, ``--check``,
which will run the inventory build without writing any files to the file
system. This is useful for checking to make sure your configuration does
not contain known errors prior to running Ansible commands.