mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
updated docs about ansible_hosts/inventory env vars
This commit is contained in:
parent
93be064aa4
commit
e971b60f26
1 changed files with 6 additions and 2 deletions
|
@ -137,13 +137,17 @@ which point at Ansible's own modules (not the same kind of modules, alas).
|
||||||
$ git submodule update --init --recursive
|
$ git submodule update --init --recursive
|
||||||
|
|
||||||
Once running the env-setup script you'll be running from checkout and the default inventory file
|
Once running the env-setup script you'll be running from checkout and the default inventory file
|
||||||
will be /etc/ansible/hosts. You can optionally specify an inventory file (see :doc:`intro_inventory`)
|
will be /etc/ansible/hosts. You can optionally specify an inventory file (see :doc:`intro_inventory`)
|
||||||
other than /etc/ansible/hosts:
|
other than /etc/ansible/hosts:
|
||||||
|
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
||||||
$ echo "127.0.0.1" > ~/ansible_hosts
|
$ echo "127.0.0.1" > ~/ansible_hosts
|
||||||
$ export ANSIBLE_HOSTS=~/ansible_hosts
|
$ export ANSIBLE_INVENTORY=~/ansible_hosts
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
|
||||||
|
ANSIBLE_INVENTORY is available starting at 1.9 and subtitutes the deprecated ANSIBLE_HOSTS
|
||||||
|
|
||||||
You can read more about the inventory file in later parts of the manual.
|
You can read more about the inventory file in later parts of the manual.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue