Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
83457e14
Commit
83457e14
authored
Oct 05, 2014
by
CaptTofu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small fix for issue #9275
parent
05644686
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
docsite/rst/developing_modules.rst
+4
-4
No files found.
docsite/rst/developing_modules.rst
View file @
83457e14
...
...
@@ -18,7 +18,7 @@ The directory "./library", alongside your top level playbooks, is also automatic
added as a search directory.
Should you develop an interesting Ansible module, consider sending a pull request to the
`moudule
-extras project <http://github.com/ansible/ansible-module
-extras>`_. There's also a core
`moudule
s-extras project <http://github.com/ansible/ansible-modules
-extras>`_. There's also a core
repo for more established and widely used modules. "Extras" modules may be promoted to core periodically,
but there's no fundamental difference in the end - both ship with ansible, all in one package, regardless
of how you acquire ansible.
...
...
@@ -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
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
...
...
@@ -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::
ansible/hacking/test-module -m ./time
ansible/hacking/test-module -m ./time
.py
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::
ANSIBLE_LIBRARY=~/ansible-module
-core:~/ansible-module
-extras
ANSIBLE_LIBRARY=~/ansible-module
s-core:~/ansible-modules
-extras
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!
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment