|
|
@ -65,7 +65,7 @@ concurrent to an equivalent run using the extension.
|
|
|
|
|
|
|
|
|
|
|
|
.. raw:: html
|
|
|
|
.. raw:: html
|
|
|
|
|
|
|
|
|
|
|
|
<video width="100%" controls>
|
|
|
|
<video width="720" height="439" controls>
|
|
|
|
<source src="http://k3.botanicus.net/tmp/ansible_mitogen.mp4" type="video/mp4">
|
|
|
|
<source src="http://k3.botanicus.net/tmp/ansible_mitogen.mp4" type="video/mp4">
|
|
|
|
</video>
|
|
|
|
</video>
|
|
|
|
|
|
|
|
|
|
|
@ -206,23 +206,24 @@ Behavioural Differences
|
|
|
|
How Modules Execute
|
|
|
|
How Modules Execute
|
|
|
|
-------------------
|
|
|
|
-------------------
|
|
|
|
|
|
|
|
|
|
|
|
Ansible usually modifies and recompresses a module each time it runs on a
|
|
|
|
Ansible usually modifies, recompresses and reuploads modules every time they
|
|
|
|
target, work that must be repeated for every playbook step. With the extension
|
|
|
|
run on a target, work that must be repeated by the controller for every
|
|
|
|
much of this work is pushed to the target, allowing pristine copies of the
|
|
|
|
playbook step.
|
|
|
|
module to be cached by the target, reducing the necessity to re-transfer
|
|
|
|
|
|
|
|
modified modules for every invocation.
|
|
|
|
With the extension any modifications are done on the target, allowing pristine
|
|
|
|
|
|
|
|
copies of modules to be cached, reducing the necessity to re-transfer modules
|
|
|
|
|
|
|
|
for each invocation. Unmodified modules are uploaded once on first use and
|
|
|
|
|
|
|
|
cached in RAM for the remainder of the run.
|
|
|
|
|
|
|
|
|
|
|
|
**Binary**
|
|
|
|
**Binary**
|
|
|
|
* Native executables detected using a complex heuristic.
|
|
|
|
* Native executables detected using a complex heuristic.
|
|
|
|
* Arguments are supplied as a JSON file whose path is the sole script
|
|
|
|
* Arguments are supplied as a JSON file whose path is the sole script
|
|
|
|
parameter.
|
|
|
|
parameter.
|
|
|
|
* Downloaded from the master on first use, and cached in the target for the
|
|
|
|
|
|
|
|
remainder of the run.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
**Module Replacer**
|
|
|
|
**Module Replacer**
|
|
|
|
* Python scripts detected by the presence of
|
|
|
|
* Python scripts detected by the presence of
|
|
|
|
``#<<INCLUDE_ANSIBLE_MODULE_COMMON>>`` appearing in their source.
|
|
|
|
``#<<INCLUDE_ANSIBLE_MODULE_COMMON>>`` appearing in their source.
|
|
|
|
* This type is not yet supported.
|
|
|
|
* Not yet supported.
|
|
|
|
|
|
|
|
|
|
|
|
**New-Style**
|
|
|
|
**New-Style**
|
|
|
|
* Python scripts detected by the presence of ``from ansible.module_utils.``
|
|
|
|
* Python scripts detected by the presence of ``from ansible.module_utils.``
|
|
|
@ -240,17 +241,15 @@ modified modules for every invocation.
|
|
|
|
|
|
|
|
|
|
|
|
**WANT_JSON**
|
|
|
|
**WANT_JSON**
|
|
|
|
* Detected by the presence of ``WANT_JSON`` appearing in the script source.
|
|
|
|
* Detected by the presence of ``WANT_JSON`` appearing in the script source.
|
|
|
|
* The interpreter directive is adjusted to match the corresponding value
|
|
|
|
* The interpreter directive is adjusted as above.
|
|
|
|
of ``{{ansible_*_interpreter}}`` if one is set.
|
|
|
|
|
|
|
|
* Arguments are supplied as a JSON file whose path is the sole script
|
|
|
|
* Arguments are supplied as a JSON file whose path is the sole script
|
|
|
|
parameter.
|
|
|
|
parameter.
|
|
|
|
|
|
|
|
|
|
|
|
**Old Style**
|
|
|
|
**Old Style**
|
|
|
|
* Files not matching any of the above tests.
|
|
|
|
* Files not matching any of the above tests.
|
|
|
|
* The interpreter directive is adjusted to match the corresponding value
|
|
|
|
* The interpreter directive is adjusted as above.
|
|
|
|
of ``{{ansible_*_interpreter}}`` if one is set.
|
|
|
|
|
|
|
|
* Arguments are supplied as a file whose path is the sole script parameter.
|
|
|
|
* Arguments are supplied as a file whose path is the sole script parameter.
|
|
|
|
The format of the file is "``key=repr(value)[ key2=repr(value2)[ ..]]``".
|
|
|
|
The format of the file is ``"key=repr(value)[ key2=repr(value2)[ ..]] "``.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Sample Profiles
|
|
|
|
Sample Profiles
|
|
|
|