Suggest ansible ad-hoc command while developing module (#70308)
If a local module has no documentation, the doc command will fail without any hints of what is wrong. Add another way to confirm the presence of a local module. * Update docs/docsite/rst/dev_guide/developing_locally.rst Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
parent
4f0ec5a9a0
commit
82e5d03bdb
1 changed files with 4 additions and 0 deletions
|
@ -43,6 +43,10 @@ Once you save your module file in one of these locations, Ansible will load it a
|
||||||
|
|
||||||
To confirm that ``my_custom_module`` is available:
|
To confirm that ``my_custom_module`` is available:
|
||||||
|
|
||||||
|
* type ``ansible localhost -m my_custom_module``. You should see the output for that module.
|
||||||
|
|
||||||
|
or
|
||||||
|
|
||||||
* type ``ansible-doc -t module my_custom_module``. You should see the documentation for that module.
|
* type ``ansible-doc -t module my_custom_module``. You should see the documentation for that module.
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
|
Loading…
Reference in a new issue