Merge pull request #9276 from CaptTofu/bug/module_doc_fix
Small fix for issue #9275
This commit is contained in:
commit
83d75bcf59
1 changed files with 3 additions and 3 deletions
|
@ -48,7 +48,7 @@ modules. Keep in mind, though, that some modules in ansible's source tree are
|
||||||
so look at `service` or `yum`, and don't stare too close into things like `async_wrapper` or
|
so look at `service` or `yum`, and don't stare too close into things like `async_wrapper` or
|
||||||
you'll turn to stone. Nobody ever executes async_wrapper directly.
|
you'll turn to stone. Nobody ever executes async_wrapper directly.
|
||||||
|
|
||||||
Ok, let's get going with an example. We'll use Python. For starters, save this as a file named `time`::
|
Ok, let's get going with an example. We'll use Python. For starters, save this as a file named `time.py`::
|
||||||
|
|
||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
|
|
||||||
|
@ -73,7 +73,7 @@ There's a useful test script in the source checkout for ansible::
|
||||||
|
|
||||||
Let's run the script you just wrote with that::
|
Let's run the script you just wrote with that::
|
||||||
|
|
||||||
ansible/hacking/test-module -m ./time
|
ansible/hacking/test-module -m ./time.py
|
||||||
|
|
||||||
You should see output that looks something like this::
|
You should see output that looks something like this::
|
||||||
|
|
||||||
|
@ -444,7 +444,7 @@ If you are having trouble getting your module "found" by ansible, be sure it is
|
||||||
|
|
||||||
If you have a fork of one of the ansible module projects, do something like this::
|
If you have a fork of one of the ansible module projects, do something like this::
|
||||||
|
|
||||||
ANSIBLE_LIBRARY=~/ansible-module-core:~/ansible-module-extras
|
ANSIBLE_LIBRARY=~/ansible-modules-core:~/ansible-modules-extras
|
||||||
|
|
||||||
And this will make the items in your fork be loaded ahead of what ships with Ansible. Just be sure
|
And this will make the items in your fork be loaded ahead of what ships with Ansible. Just be sure
|
||||||
to make sure you're not reporting bugs on versions from your fork!
|
to make sure you're not reporting bugs on versions from your fork!
|
||||||
|
|
Loading…
Reference in a new issue