config: use path list for default inventory

This allows to use a pathlist in the ansible.cfg:

  [default]
  inventory = path/inventory:other_path/inventory

Since ansible allows to use --inventory on CLI more then once, we should also support a pathlist in the config.
This commit is contained in:
Rene Moser 2017-09-06 20:04:17 +02:00 committed by Brian Coca
commit da488a8db5
2 changed files with 2 additions and 4 deletions

View file

@ -604,7 +604,7 @@ DEFAULT_HOST_LIST:
expand_relative_paths: True
ini:
- {key: inventory, section: defaults}
type: path
type: pathlist
yaml: {key: defaults.inventory}
DEFAULT_INTERNAL_POLL_INTERVAL:
default: 0.001