mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 21:00:22 -07:00
Remove Deprecated configs 2.8 (#46825)
* Removed deprecated ANSIBLE_HOSTS * Bump sudo/su configs to match deprecation version for cli and playbook args * Bump include configs to match deprecation version for 'include'
This commit is contained in:
parent
2728a22f73
commit
45ff6df1af
6 changed files with 13 additions and 122 deletions
|
@ -61,7 +61,7 @@ The ``auto`` inventory plugin is enabled by default and works by using the ``plu
|
|||
| |--ec2-98-765-432-10.compute-1.amazonaws.com
|
||||
|--@ungrouped:
|
||||
|
||||
You can set the default inventory path (via ``inventory`` in the `ansible.cfg` [defaults] section or the :envvar:`ANSIBLE_HOSTS` environment variable) to your inventory source(s). Now running ``ansible-inventory --graph`` should yield the same output as when you passed your YAML configuration source(s) directly. You can add custom inventory plugins to your plugin path to use in the same way.
|
||||
You can set the default inventory path (via ``inventory`` in the `ansible.cfg` [defaults] section or the :envvar:`ANSIBLE_INVENTORY` environment variable) to your inventory source(s). Now running ``ansible-inventory --graph`` should yield the same output as when you passed your YAML configuration source(s) directly. You can add custom inventory plugins to your plugin path to use in the same way.
|
||||
|
||||
Your inventory source might be a directory of inventory configuration files. The constructed inventory plugin only operates on those hosts already in inventory, so you may want the constructed inventory configuration parsed at a particular point (such as last). Ansible parses the directory recursively, alphabetically. You cannot configure the parsing approach, so name your files to make it work predictably. Inventory plugins that extend constructed features directly can work around that restriction by adding constructed options in addition to the inventory plugin options. Otherwise, you can use ``-i`` with multiple sources to impose a specific order, e.g. ``-i demo.aws_ec2.yml -i clouds.yml -i constructed.yml``.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue