summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorSandra McCann <samccann@redhat.com>2022-08-25 16:33:03 -0400
committerGitHub <noreply@github.com>2022-08-25 13:33:03 -0700
commita55ffb8d17197edc1c10562941d3aaf4ea83b533 (patch)
tree8a6a3315cf229ac8e271315aa571a109d360bf47 /docs
parent8071f014f6c3a91c69a5c783a303bd0b79be06c5 (diff)
downloadansible-a55ffb8d17197edc1c10562941d3aaf4ea83b533.tar.gz
Backportapalooza 08 25 (#78647)
* fix adhoc dev example (#78593) (cherry picked from commit 5ac40b358d7d64e4169813e400c19f869b17183c) * Docs: fix issue-76133-apt-repository (#78586) (cherry picked from commit 3b9f1871e512ffc4106348cadb2ea369eb8b4fd0) * Fixes parameter name in expect module examples (#78635) (cherry picked from commit 81813b7f23f6c33d9bec52f04d0d061bd5f1755e) * doc: Correct mixed up commentary and task name (#78610) Co-authored-by: Sloane Hertel <19572925+s-hertel@users.noreply.github.com> (cherry picked from commit 87ba1e29d3ca1aec2d05782e0fe9a33c82701e62) Co-authored-by: Sloane Hertel <19572925+s-hertel@users.noreply.github.com> Co-authored-by: Arnold Kamanzi <kamstan6@gmail.com> Co-authored-by: gmdmi <gmdmi@ya.ru> Co-authored-by: rawtaz <rawtaz@users.noreply.github.com>
Diffstat (limited to 'docs')
-rw-r--r--docs/docsite/rst/dev_guide/developing_modules_general.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/docsite/rst/dev_guide/developing_modules_general.rst b/docs/docsite/rst/dev_guide/developing_modules_general.rst
index 3f1f27fd06..abffcf191c 100644
--- a/docs/docsite/rst/dev_guide/developing_modules_general.rst
+++ b/docs/docsite/rst/dev_guide/developing_modules_general.rst
@@ -80,13 +80,13 @@ The simplest way is to use ``ansible`` adhoc command:
.. code:: shell
- ansible -m library/my_test.py -a 'name=hello new=true' remotehost
+ ANSIBLE_LIBRARY=./library ansible -m my_test -a 'name=hello new=true' remotehost
If your module does not need to target a remote host, you can quickly and easily exercise your code locally like this:
.. code:: shell
- ansible -m library/my_test.py -a 'name=hello new=true' localhost
+ ANSIBLE_LIBRARY=./library ansible -m my_test -a 'name=hello new=true' localhost
- If for any reason (pdb, using print(), faster iteration, etc) you want to avoid going through Ansible,
another way is to create an arguments file, a basic JSON config file that passes parameters to your module so that you can run it.