Scott Butler
1b86d838b6
Added semicolon to invalid operators list redux.
2016-09-02 12:26:33 -07:00
Dag Wieers
ec158e3ed8
Remove redundant code AFAICT ( #3908 )
2016-08-24 18:47:39 -04:00
Toshio Kuratomi
2f26352e49
Cleanups of command.py ( #4526 )
...
* Import module_utils at the top
* Fix python3 by marking literals combined with stdout/stderr as byte
literals
* Mark parameters as type=path where appropriate
2016-08-24 08:27:36 -07:00
Toshio Kuratomi
b3c606047d
Remove git and synchronize modules from list of commands we want users to use the module for instead. ( #4233 )
2016-07-21 10:57:41 -07:00
jctanner
780c52d8a4
Add a note about using the script module with pseudo-tty's lack of stderr channel ( #4000 )
...
Addresses #3610
2016-06-21 13:09:54 -04:00
Brian Coca
dbf5d10025
updated raw docs for environment and executable
...
it should now reflect how raw works in combination with
become and environment directives
2016-06-15 11:23:20 -04:00
Harlan Lieberman-Berg
2b36edd55c
command: Correct suggestion of non-existant module apt-get
2016-05-01 11:02:57 +02:00
Michael Scherer
b5ef21ef89
Suggest using uri if curl is detected
...
Some people use the command module to run curl not to
download file, but to interact with remote HTTP api, and the
get_url suggestion is not suitable. So adding uri in the warning
would give a more meaningful warning.
Suggested by Tahvok on #ansible irc channel.
2016-04-19 20:00:02 +02:00
Leonardo Giordani
76e2cf1941
Added some documentation for the shell return values
2016-02-25 10:42:54 +01:00
Toshio Kuratomi
6ff4c4cb71
Add example of using non-posix shellisms to raw and shell
...
Fixes #14262
2016-02-03 13:09:25 -08:00
Toshio Kuratomi
93d02189f6
Remove duplicate documentation fields
2016-01-28 09:24:20 -08:00
Alexander Gubin
956d1d0700
command: Add warnings for dnf and zypper
2015-12-22 10:08:59 +01:00
Brian Coca
10e70aaf2b
note that create globs only work on 2.0
...
fixes #2666
2015-12-12 17:16:47 -05:00
Brian Coca
1f7686fd31
returned version added
2015-07-30 17:04:41 -04:00
Brian Coca
697307f88c
Merge pull request #1670 from mikeputnam/issue-1643-gpl-header
...
Add missing GPLv3 License header
2015-07-30 14:39:44 -04:00
Brian Coca
8227b48a6a
minor doc fixes
2015-07-28 14:50:01 -04:00
Bill Nottingham
69deab1786
Warn on use of sudo, etc. in shell/command.
2015-07-27 11:02:24 -04:00
Mike Putnam
6c0e264806
Add missing GPLv3 License header
...
Fixes #1643
2015-07-03 22:57:53 -05:00
Toshio Kuratomi
6288d44581
Merge pull request #513 from fgsch/fix_1904
...
Allow globbing in creates= and removes= directives
2015-06-27 06:16:49 -07:00
Greg DeKoenigsberg
2a5f0bde87
Proper author info for all remaining modules
2015-06-15 15:53:30 -04:00
James Cammarata
76c6a53274
Fix missing expanduser on chdir value
2015-06-01 14:51:57 -07:00
James Cammarata
6a63f2a6ba
Command module changes for v2 compatibility
2015-06-01 14:51:57 -07:00
Toshio Kuratomi
98f0c0424a
Remove str.format() usage for python2.4 compat.
...
Fixes #10036
2015-01-27 09:45:05 -08:00
Federico G. Schwindt
9e381264ae
Document globbing support
2015-01-07 04:47:58 +00:00
Federico G. Schwindt
3fca5e5876
Allow globbing in creates= and removes= directives
...
Fixes 1904
2014-12-14 22:53:21 +00:00
Ricky Cook
6db328c79a
Fix regex string format
2014-10-09 21:25:58 +11:00
Ricky Cook
b195b5a6bb
Get warn option same as other args
2014-10-09 21:25:58 +11:00
Ricky Cook
25789b3f47
Add comment to command options dict
2014-10-09 21:25:58 +11:00
Ricky Cook
8d9f6053d3
Simplify command module option parsing
2014-10-09 21:25:58 +11:00
James Cammarata
5af8d55b03
Strip newlines off k=v pairs in command/shell argument parsing
...
Fixes ansible/ansible#9272
2014-10-08 14:48:07 -05:00
Michael DeHaan
385a037cd6
package files
2014-09-26 11:05:47 -04:00
Michael DeHaan
c8e1a2077e
file extensions!
2014-09-26 10:37:56 -04:00
Michael DeHaan
417309a626
Restructuring.
2014-09-26 10:13:26 -04:00
Michael DeHaan
73123b69fa
Move modules into subdirectory.
2014-09-26 09:23:50 -04:00
Michael DeHaan
f0a552c060
Make command warnings off by default to minimize surprises.
2014-08-22 16:12:48 -04:00
Michael DeHaan
c2cfbcc940
Docs for command warnings feature.
2014-08-22 15:37:07 -04:00
Michael DeHaan
83f06e4162
Slightly trim down the warnings list based on some things being pretty common
...
for local usage.
2014-08-22 15:37:07 -04:00
Will Thames
9686385898
Added warnings to command module
...
Generate warnings when users are shelling out to commands
rather than using modules
Can be turned off on a per-action line with the documented
warn=False flag. Can be turned off globally using
command_warnings = False in ansible config file.
Print out warnings using the standard playbook callbacks.
Created some additional tests in TestRunner.test_command
and also a demonstration playbook.
2014-08-22 15:37:07 -04:00
James Cammarata
e55911afb2
Removing skipped=True from result when using creates= and removes=
...
Fixes #8645
2014-08-19 09:09:13 -05:00
Michael DeHaan
185d5a6221
Merge branch 'spelling' of git://github.com/cgar/ansible into devel
...
Conflicts:
docsite/rst/guide_rax.rst
plugins/callbacks/mail.py
2014-08-08 13:28:45 -04:00
James Cammarata
0963d4aee4
Move splitter to module_utils so modules can use it and fix command arg splitting
...
Fixes #8338
2014-07-29 14:55:16 -05:00
James Cammarata
0bf0053652
Fixes for module param counting and additional shell quoting issues
2014-07-23 22:54:59 -05:00
James Cammarata
cf8905b2b0
Fixing up shell quoting issues
2014-07-22 10:09:11 -05:00
James Cammarata
274e1f4106
Security fixes:
...
* Strip lookup calls out of inventory variables and clean unsafe data
returned from lookup plugins (CVE-2014-4966)
* Make sure vars don't insert extra parameters into module args and prevent
duplicate params from superseding previous params (CVE-2014-4967)
2014-07-21 11:20:49 -05:00
Michael DeHaan
9b587dafed
Add note about useful quote filter.
2014-07-18 18:23:48 -04:00
Rik
8f25698925
Added examples to the command module
2014-06-24 13:47:23 +02:00
Rik
0b8aec9547
Added examples to the shell module
2014-06-24 13:45:33 +02:00
Carlos E. Garcia
4dcaa9d9fb
multiple spelling error changes
2014-04-29 10:41:05 -04:00
Michael DeHaan
6fbf707a48
Clarify free_form isn't a real option :)
2014-04-03 17:34:33 -04:00
Cristian Ciupitu
7f681c33a2
Micro-optimization: replace s.find(x)!=-1 with x in s
...
timeit shows a speedup of ~3x on Python 2.7.5 x86_64.
It also makes the code a bit shorter.
2014-03-16 13:10:28 -04:00