mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 21:00:22 -07:00
parent
7197186366
commit
4bd16216fe
1 changed files with 4 additions and 0 deletions
|
@ -20,6 +20,9 @@ DOCUMENTATION = '''
|
||||||
notes:
|
notes:
|
||||||
- It takes the place of the previously hardcoded INI inventory.
|
- It takes the place of the previously hardcoded INI inventory.
|
||||||
- To function it requires being whitelisted in configuration.
|
- To function it requires being whitelisted in configuration.
|
||||||
|
- Variable values are processed by Python's ast.literal_eval function (U(https://docs.python.org/2/library/ast.html#ast.literal_eval))
|
||||||
|
which could cause the value to change in some cases. See the Examples for proper quoting to prevent changes. Another option would be
|
||||||
|
to use the yaml format for inventory source which processes the values correctly.
|
||||||
'''
|
'''
|
||||||
|
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
|
@ -40,6 +43,7 @@ EXAMPLES = '''
|
||||||
[apache]
|
[apache]
|
||||||
tomcat1
|
tomcat1
|
||||||
tomcat2 myvar=34 # host specific vars override group vars
|
tomcat2 myvar=34 # host specific vars override group vars
|
||||||
|
tomcat3 mysecret="'03#pa33w0rd'" # proper quoting to prevent value changes
|
||||||
|
|
||||||
[nginx]
|
[nginx]
|
||||||
jenkins1
|
jenkins1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue