Skip to content

Commit

Permalink
Move ansible.invetories to ansible.inventory.paths (#1103)
Browse files Browse the repository at this point in the history
  • Loading branch information
cidrblock authored Mar 18, 2022
1 parent cd225e7 commit 4da56a5
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 6 deletions.
3 changes: 3 additions & 0 deletions docs/changelog-fragments.d/1103.breaking.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Moved `ansible.inventories` to `ansible.inventory.paths` in the settings file.

-- by {user}`cidrblock`
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ class Internals:
name="inventory",
cli_parameters=CliParameters(action="append", nargs="+", short="-i"),
environment_variable_override="ansible_navigator_inventories",
settings_file_path_override="ansible.inventories",
settings_file_path_override="ansible.inventory.paths",
short_description="Specify an inventory file path or comma separated host list",
subcommands=["inventory", "run"],
value=SettingsEntryValue(),
Expand Down
11 changes: 8 additions & 3 deletions src/ansible_navigator/configuration_subsystem/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,14 @@
"additionalProperties": False,
"properties": {"path": {"type": "string"}},
},
"inventories": {
"items": {"type": "string"},
"type": "array",
"inventory": {
"additionalProperties": False,
"properties": {
"paths": {
"items": {"type": "string"},
"type": "array",
},
},
},
"playbook": {
"additionalProperties": False,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ ansible-navigator:
config:
path: /tmp/ansible.cfg
cmdline: "--forks 15"
inventories:
- /tmp/test_inventory.yml
inventory:
paths:
- /tmp/test_inventory.yml
playbook:
path: /tmp/test_playbook.yml
ansible-builder:
Expand Down

0 comments on commit 4da56a5

Please sign in to comment.