mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-28 07:31:23 -07:00
Update constants.py to pull module path and the hosts file from the
environment (ANSIBLE_{LIBRARY,HOSTS}) if defined. Update manpages to represent this. Also update the env-setup script to set ANSIBLE_{LIBRARY,HOSTS}.
This commit is contained in:
parent
3c20f4000f
commit
f2c2786a14
5 changed files with 51 additions and 14 deletions
|
@ -25,7 +25,7 @@ SSH.
|
|||
ARGUMENTS
|
||||
---------
|
||||
|
||||
*hostspec*
|
||||
*host-pattern*::
|
||||
|
||||
A name of a group in the inventory file, a shell-like glob selecting hosts in inventory
|
||||
file, or any combination of the two seperated by semicolons.
|
||||
|
@ -75,6 +75,16 @@ FILES
|
|||
/usr/share/ansible -- Default module library
|
||||
|
||||
|
||||
ENVIRONMENT
|
||||
-----------
|
||||
|
||||
The following environment variables may specified.
|
||||
|
||||
ANSIBLE_HOSTS -- Override the default ansible hosts file
|
||||
|
||||
ANSIBLE_LIBRARY -- Override the default ansible module library path
|
||||
|
||||
|
||||
AUTHOR
|
||||
------
|
||||
|
||||
|
@ -95,7 +105,7 @@ SEE ALSO
|
|||
|
||||
Ansible home page: <https://github.com/mpdehaan/ansible/>
|
||||
|
||||
*ansible-modules*(5),
|
||||
*ansible-modules*(5)
|
||||
|
||||
*ansible-playbook*(5),
|
||||
*ansible-playbook*(5)
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ ansible-modules(5)
|
|||
:doctype:manpage
|
||||
:man source: Ansible-modules
|
||||
:man version: 0.0.1
|
||||
:man manual: System administration commands
|
||||
:man manual: Ansible
|
||||
|
||||
|
||||
NAME
|
||||
|
@ -23,7 +23,7 @@ IDEMPOTENCE
|
|||
|
||||
Most modules other than command are idempotent, meaning they will seek to avoid changes
|
||||
unless a change needs to be made. When using ansible playbooks, these modules can
|
||||
trigger change events, as described in ansible-playbooks (5).
|
||||
trigger change events, as described in *ansible-playbooks*(5).
|
||||
|
||||
Unless otherwise noted, all modules support change hooks.
|
||||
|
||||
|
@ -148,7 +148,7 @@ setup
|
|||
|
||||
Writes a JSON file containing key/value data, for use in templating.
|
||||
Call this once before using the template modules, usually as the very
|
||||
first step in your playbook.
|
||||
first step in your playbook.
|
||||
|
||||
If facter or ohai are installed, variables from these programs will also
|
||||
be snapshotted into the JSON file for usage in templating. These variables
|
||||
|
@ -212,6 +212,13 @@ To support change hooks, modules should return hashes, with a changed: True/Fals
|
|||
element at the top level. Modules can also choose to indicate a failure scenario
|
||||
by returning a top level 'failure' element with a True value.
|
||||
|
||||
|
||||
ENVIRONMENT
|
||||
-----------
|
||||
|
||||
ANSIBLE_LIBRARY -- Override the default ansible module library path
|
||||
|
||||
|
||||
AUTHOR
|
||||
------
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ ansible-modules(5)
|
|||
:doctype:manpage
|
||||
:man source: Ansible-playbook
|
||||
:man version: 0.0.1
|
||||
:man manual: System administration commands
|
||||
:man manual: Ansible
|
||||
|
||||
|
||||
NAME
|
||||
|
@ -28,13 +28,13 @@ Playbooks are written in YAML.
|
|||
EXAMPLE
|
||||
-------
|
||||
|
||||
see
|
||||
See:
|
||||
|
||||
https://github.com/mpdehaan/ansible/blob/master/examples/playbook.yml
|
||||
- https://github.com/mpdehaan/ansible/blob/master/examples/playbook.yml
|
||||
|
||||
https://github.com/mpdehaan/ansible/blob/master/examples/base.yml
|
||||
- https://github.com/mpdehaan/ansible/blob/master/examples/base.yml
|
||||
|
||||
https://github.com/mpdehaan/ansible/blob/master/examples/handlers.yml
|
||||
- https://github.com/mpdehaan/ansible/blob/master/examples/handlers.yml
|
||||
|
||||
WHAT THE EXAMPLE MEANS
|
||||
-----------------------
|
||||
|
@ -100,6 +100,12 @@ If a host has a failure, the host will be ignored for the remainder
|
|||
of the playbook execution.
|
||||
|
||||
|
||||
ENVIRONMENT
|
||||
-----------
|
||||
|
||||
ANSIBLE_LIBRARY -- Override the default ansible module library path
|
||||
|
||||
|
||||
AUTHOR
|
||||
------
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue