Skip to content

Commit

Permalink
Change inventory.paths to inventory.entries (#1128)
Browse files Browse the repository at this point in the history
Co-authored-by: Sorin Sbarnea <ssbarnea@redhat.com>
  • Loading branch information
cidrblock and ssbarnea authored Mar 23, 2022
1 parent b2e4427 commit 7c463e8
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ class Internals:
name="inventory",
cli_parameters=CliParameters(action="append", nargs="*", short="-i"),
environment_variable_override="ansible_inventory",
settings_file_path_override="ansible.inventory.paths",
settings_file_path_override="ansible.inventory.entries",
short_description="Specify an inventory file path or comma separated host list",
subcommands=["inventory", "run"],
value=SettingsEntryValue(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@ ansible-navigator:
inventory:
# {{ ansible.inventory.help }}
help: True
# {{ ansible.inventory.paths }}
paths:
# {{ ansible.inventory.entries }}
entries:
- host1,
- router1,router2
- inventory.yml
playbook:
# {{ ansible.playbook.help }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"help": {
"type": "boolean"
},
"paths": {
"entries": {
"items": {
"type": "string"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ ansible-navigator:
type: become
inventory:
help: False
paths:
entries:
- /tmp/test_inventory.yml
playbook:
help: False
Expand Down

0 comments on commit 7c463e8

Please sign in to comment.