Patrik Lundin
9f9944e355
Replace -delete with portable -exec rm {} \;
...
Needed on OpenBSD which does not support -delete.
9 years ago
Alberto Gireud
52ded67db5
Update check mode argument
9 years ago
Brian Coca
4a206cdde9
force egg deletion
9 years ago
Brian Coca
5719912e7f
added a skip for the test dir in module repos
9 years ago
Toshio Kuratomi
4203850d1a
Break apart a looped dependency to show a warning when parsing playbooks
...
Display a warning when a dict key is overwritten by pyyaml
Fixes #12888
9 years ago
Toshio Kuratomi
baa309309d
Bundle a new version of python-six for compatibility along with some code to make it easy for distributions to override the bunndled copy if they have a new enough version.
9 years ago
Brian Coca
3a0bf55ae3
better error catching for doc build
9 years ago
James Cammarata
a431121f9f
Tweak to hacking path fix to go back to subshell use
9 years ago
EC
bcdb4e78ae
Allow env-setup to use spaces in full path
9 years ago
Marius Gedminas
823677b490
Replace .iteritems() with six.iteritems()
...
Replace .iteritems() with six.iteritems() everywhere except in
module_utils (because there's no 'six' on the remote host). And except
in lib/ansible/galaxy/data/metadata_template.j2, because I'm not sure
six is available there.
9 years ago
Luke Rohde
cba4642d8d
Use find ... -delete instead of non-portable globbing
9 years ago
Luke Rohde
647e48f776
Delete all compiled python files when running hacking/env-setup
9 years ago
Kevin Houdebert
b8c9391d0c
Change to python3 syntax
9 years ago
Jody Frankowski
bc1e1d2cdc
Fix rm call in hacking/env-setup. Since it is sourced from a user shell,
...
rm can have an alias to 'rm -i', which will make sourcing hang when '-q'
is enabled.
9 years ago
Abhijit Menon-Sen
114070c226
Add missing $
9 years ago
Brian Coca
636f88fd31
Merge pull request #9438 from binarytemple/patch-1
...
export ANSIBLE_HOME so it can be used in scripts
9 years ago
Toshio Kuratomi
53ae326603
Port some things in test-module to v2.
...
In particular, fix arg parsing
Fixes #11820
9 years ago
Brian Coca
f5c8055879
removed debug stuff
9 years ago
Brian Coca
a78fdde32c
better handling for weird doc corner cases (abscense of options, bad text objects, etc)
...
also updated extras to get some docfixes on the module side
9 years ago
bryan hunt
7a76fcb159
merged
9 years ago
Sheldon Hearn
c800a1c68a
Preserve OLDPWD
9 years ago
Brian Coca
ae54792a35
Merge pull request #11688 from amenonsen/8935-rebase
...
8935 rebase: add «-o outputfile» and -n(oexec) options to hacking/test-module
9 years ago
Brian Coca
d3fe9b3194
Merge pull request #11084 from echiu64/devel
...
More complex example of using test-module
9 years ago
Abhijit Menon-Sen
8342cc6b61
Fix existing typo, remove trailing space added by PR commit
9 years ago
Will Thames
b05485d4b3
Add options to control output and execution of test-module
...
test-module is useful but sometimes you want to edit the
result before running it to e.g. set a debug point.
Added a noexecute option (i.e. just create the module script, don't
run it) and an output option to choose the filename of the result.
9 years ago
Brian Coca
c40541964b
Merge pull request #11637 from bcoca/moar_docs
...
Moar docs
9 years ago
Brian Coca
740f15cb0d
just remove version_added when to old, not the whole option!
9 years ago
Brian Coca
9de086d16d
removed merges from count
9 years ago
Brian Coca
173f27531c
moar docs
...
added docs for new v2 features
restructures modules bar and core/extras info into their own pages
changed templates to refer to the new pages
added some missing ansible.cfg options
more info on gathering setting
9 years ago
Brian Coca
6ba706f753
minor doc reformatting
...
now version_added < 1.3 does not get shown, up from 1.0
option's version_added is also now filterd against this threshold
module version_added is more prominent
exaples now uses pure rst instead of intermingled with html formatting
aliases now shown in description for options
bad version fields now throw warnings instead of exceptions
ansible-doc errors now show traceback in very very verbose mode, for easier debugging
9 years ago
Brian Coca
811b10d132
docs will not mention versions older than 1.5
9 years ago
Brian Coca
1aeb66148b
actually now does what it says as it was just sorting by name
9 years ago
Gerard Lynch
2f51f3bbc5
updated to use new loader
9 years ago
Brian Coca
95bf78d0e7
Merge pull request #11618 from halberom/test-module
...
hacking/test-module, updated to new location and non-classness of module_common
9 years ago
Gerard Lynch
3c7a502c50
updated to new location and non-classness of module_common
9 years ago
Brian Coca
f146c7680f
Merge pull request #10928 from gimoh/test-module-default-python
...
Use same interpreter for test-module and module it runs
9 years ago
Marc Abramowitz
3b0524e67d
hacking/test-module: Style nit
10 years ago
Marc Abramowitz
5466ff8907
hacking/test-module: Deal with move of parse_kv
10 years ago
Marc Abramowitz
ea6ec3bf2c
Make test-module work in v2
...
- `jsonify` moved from `ansible.utils` to `ansible.parsing.utils.jsonify`
- I don't see `ansible.utils.parse_json` anymore so I used `json.loads`.
10 years ago
Brian Coca
0826106441
minor docs reformat
...
- clearer 'version added' for module options, now it sits under the option name
- made notes a section, so it now appears in toc
- moved requirements and made it a list, more prominent and more readable
10 years ago
James Cammarata
2bad888f28
Merge branch 'v2_final' into devel_switch_v2
...
Conflicts:
lib/ansible/inventory/__init__.py
lib/ansible/modules/core
lib/ansible/utils/__init__.py
lib/ansible/utils/module_docs.py
10 years ago
Edwin Chiu
aef76cc701
More complex example of using test-module
10 years ago
Florian Apolloner
3010190592
Fixing up the hacking module_formatter code for v2
10 years ago
Michael Scherer
85aa984340
Fix error in the column name in the doc
10 years ago
gimoh
5489d172de
Use same interpreter for test-module and module it runs
...
Default python interpreter to the same interpreter the test-module
script is executed with. This is so that the interpreter doesn't have
to be specified twice in the command when using non-default python
(e.g. ``/path/to/python ./hacking/test-module -I python=/path/to/python ...``)
10 years ago
Toshio Kuratomi
4c8d27f7bb
Make module formatting into links to the other module docs
10 years ago
Matt Martz
104b2036f7
egg_info is now written directly to lib
10 years ago
Brian Coca
b6ec502983
added missing element to make google groups link a actual link
10 years ago
Ján Dzurek
cf6155f1c2
rst.j2 template better core module source wording
10 years ago
Brian Coca
c3076b8478
added module returnval documentation to web docs
10 years ago