Ansible - Want Json Module Type

Card Puncher Data Processing


Json (or Want Json) is a Module type.

A non-native module accepts a filename as its only command line parameter. Ansible creates this file with the module parameters and pass it to the module.

Process / Dev

The non-native module needs to:

  • open the file, (ie a JSON temporary file containing the module’s parameters)
  • read and parse the parameters,
  • operate on the data,
  • and print its return data as a JSON encoded dictionary to stdout before exiting.

These types of modules are self-contained entities. As of Ansible 2.1, Ansible only modifies them to change a shebang line if present.


Documentation / Reference

Discover More
Card Puncher Data Processing
Ansible - Module

Module are the component that are called via a task modules_by_category With ansible, example running a module...
Card Puncher Data Processing
Ansible - Binary Module Type

Binary is a type of modules that take its arguments and will return data to Ansible in the same way as want JSON modules. In Go: ansible/ansible/blob/devel/test/integration/targets/binary_modules/library/helloworld.goHelloWorld...

Share this page:
Follow us:
Task Runner