mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Add note about reading input for binary modules
This commit is contained in:
parent
ddf3c3838f
commit
c22c1b4785
1 changed files with 18 additions and 0 deletions
|
@ -204,6 +204,24 @@ This should return something like::
|
|||
|
||||
{"changed": true, "time": "2012-03-14 12:23:00.000307"}
|
||||
|
||||
.. _binary_module_reading_input:
|
||||
|
||||
Binary Modules Input
|
||||
~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Support for binary modules was added in Ansible 2.1. When Ansible detects a binary module, it will proceed to
|
||||
supply the argument input as a file on ``argv[1]`` that is formatted as JSON. The JSON contents of that file
|
||||
would resemble something similar to::
|
||||
|
||||
{
|
||||
"name": "Ansible",
|
||||
"_ansible_verbosity": 4,
|
||||
"_ansible_diff": false,
|
||||
"_ansible_debug": false,
|
||||
"_ansible_check_mode": false,
|
||||
"_ansible_no_log": false
|
||||
}
|
||||
|
||||
.. _module_provided_facts:
|
||||
|
||||
Module Provided 'Facts'
|
||||
|
|
Loading…
Reference in a new issue