Commit Graph

105 Commits (5d73a9a4c5c36a4997a0019fed37bc5c0cd1fa3b)

Author SHA1 Message Date
Jim Kleckner 2903c7b568 Fix documentation example for the fail module
The example for the fail module doesn't work:
  http://www.ansibleworks.com/docs/modules.html#fail

The current text shows:
    - fail: msg="The system may not be provisioned according to the CMDB status."
      when: "{{ cmdb_status }} != 'to-be-staged'"

The "when" documentation indicates that the argument is already a Jinja2
expression:
  http://www.ansibleworks.com/docs/playbooks_conditionals.html#the-when-statement

Thus, the following is
      when: cmdb_status != "to-be-staged"

is preferred even though the following could work but generates a
deprecation warning:
      when: {{cmdb_status != "to-be-staged"}}
11 years ago
Andrii Radyk 29c9922ac5 Adding absent condition for to the wait_for module 11 years ago
James Tanner 4f9aadcc07 Addresses #5023 Fix import comments 11 years ago
James Tanner 38edad70ac Fixes #5023 Convert all modules to use new snippet import pattern 11 years ago
James Cammarata a1f1f459d8 Fix accelerate module parameter for IPv6 activation 11 years ago
Junegunn Choi 2663513b5c Remove Python 2.4-incompatible 'with' statement 11 years ago
jctanner 5ed73281b0 Merge pull request #4780 from mscherer/fix_accelerate_various
Fix various warning on accelerate module, found by pyflakes
11 years ago
James Tanner d9147bc0e0 Fixes #4851 Set syslog debug mode for accelerate properly 11 years ago
John Jarvis 51b9be9bfd Adding more wait conditions to the wait_for module
Adds a new option to wait_for to wait for a file to exist on the file
system before continuing, optionally takes a search_regex param to match
text in the file.
11 years ago
Michael Scherer 33e1a82fae fix incorrect send_data call. there is no client variable, and send_data
is a class method. Pyflakes complained about it.
11 years ago
Michael Scherer d000ef1844 remove unused variable (pyflakes) 11 years ago
Michael Scherer c2851cd1e8 make pyflakes a bit more silent
- explictely import json, since this is used ( only to silence pyflakes)
- remove shutil as it is unused
11 years ago
jctanner ac3baf2f93 Merge pull request #4772 from mscherer/fix_4763
Try/finally is a python 2.5 construct, so not working on EL5. Fix #4763
11 years ago
James Tanner 78f4f95e64 Fixes #4485 add an ipv6 parameter to accelerate so that the daemon will bind to an ipv6 port instead of ipv4 11 years ago
Michael DeHaan 1381f80e47 Make it slightly more clear what side of the connection is missing keyczar if using accelerate mode. 11 years ago
Michael DeHaan e939a41bfb Update module documentation. 11 years ago
Michael Scherer 8f5a0f9112 Try/finally is a python 2.5 construct, so not working
on EL5. Fix #4763
11 years ago
Michael DeHaan dd6af369af Some simplification of include_vars and renamed include_files to include_vars. 11 years ago
Michael DeHaan 684cbf8154 Merge branch 'include_files' of git://github.com/bennojoy/ansible into devel 11 years ago
Michael Scherer a53972c3a7 Fix accelerate module on centos 5 by removing
unsupported string prefix in 2.4

http://docs.python.org/release/2.4/ref/strings.html
This is also ignored on later version of python 2
and is present only for python 3 conversion, as seen
on http://docs.python.org/2/reference/lexical_analysis.html#string-literals

Also see http://stackoverflow.com/questions/6269765/what-does-the-b-character-do-in-front-of-a-string-literal

Fix https://github.com/ansible/ansible/issues/4739
11 years ago
bennojoy 00b9aae26e include files 11 years ago
Michael DeHaan ce8b0944a9 Misc pep8 fixes 11 years ago
Michael DeHaan 4503cbebc0 Added "debug: var=variableName" capability. 11 years ago
James Cammarata 3cd459faf7 Fix for network byte order issues in accelerate 11 years ago
James Cammarata 88b9bc5de8 Merge branch 'accelerate_improvements' into devel
Conflicts:
	library/utilities/accelerate
11 years ago
James Cammarata 3b87b2c56c Make recv_data less greedy so it doesn't eat other packets 11 years ago
James Cammarata 13f28d31fa Adding an accelerate_timeout parameter for plays
This setting makes the timeout for each play configurable, rather than
hard-coding it at 300 seconds (now the default if left unspecified)

Fixes #4162
11 years ago
James Cammarata d3f1c89470 Added keepalive packets to accelerate mode
Commands will now be started up in a separate task from the main
handler thread, so that it can be monitored for completeness while
sending a keepalive packet back to the controller to avoid a socket
receive timeout.
11 years ago
James Cammarata 18379701f0 Use atomic_move to put the file, rather than shelling out
Fixes #4321
11 years ago
James Cammarata 42449a3901 Add more verbose debugging options for accelerate 11 years ago
Andrey Shorin 7e2755a542 Make --check mode work with fireball and accelerate connections 11 years ago
Erick Yellott 55e26fdfda Typo fix from `accelerated: true` to `accelerate: true` 11 years ago
James Cammarata 156ab85478 Check for an empty executable passed into the accelerate plugin
This was breaking at least the script module, so it would seem best
to check for it and set it to the default executable value
11 years ago
James Cammarata a05eec87b2 When putting a file in accelerated mode, make sure it's chowned correctly 11 years ago
James Cammarata 0a27ded6f3 Adding the facility to the accelerate daemon syslog calls 11 years ago
James Cammarata f8c77e3980 Renaming fireball2 as 'accelerate' and removing old references 11 years ago
James Cammarata 1066a1703f Adding chunked file transfers to fireball2 11 years ago
James Cammarata 7ec763106d Added accelerate_port to plays, and made it configurable 11 years ago
James Cammarata b49f67ee7a Initial support for sudoable commands over fireball2
Caveats:
* requiretty must be disabled in the sudoers config
* asking for a password doesn't work yet, so any sudoers users must
  be configured with NOPASSWD
* if not starting the daemon as root, the user running the daemon
  must have sudoers entries to allow them to run the command as the
  target sudo_user
11 years ago
James Cammarata e92df1dc76 Bail out correctly if socket.recv gets nothing (indicating a closed socket) 11 years ago
James Cammarata 3d3b318a86 Fireball2 mode working! 11 years ago
Brian Coca e7e5db8e6c updated debug module docs to remove outdated -v requirement (and
only_if reference)
Signed-off-by: Brian Coca <briancoca+dev@gmail.com>
11 years ago
Michael DeHaan 7cf87d7a3c Legacy variable usage removed 11 years ago
Jesse Keating 64fb4f4c93 Update fail docs for new syntax
Use when instead of only_if
Use new variable style
12 years ago
Jesse Keating 6a1d6ee25f Elapsed time should account for the delay 12 years ago
Jan-Piet Mens 98c1423269 Docs: consistently format playbook EXAMPLES 12 years ago
Michael DeHaan 5cbbd2ee6d Remove reference to non-existant module. 12 years ago
Jan-Piet Mens 3404a0fc16 DOCS: standardize on EXAMPLES (a.k.a. Docs-JumboPatch JetLag Edition)
Migrated all examples: in DOCUMENTATION=''' string to standalone EXAMPLES=''' string
  Added deprecation warning to moduledev.rst and remove deprecated example from it
  Fixed up a few typos and uppercased some acronyms.
  add consistency to how EXAMPLES are formatted
12 years ago
Michael DeHaan 2bb25cac74 Doc standardization 12 years ago
Michael DeHaan 2438ef474a Docs standardization 12 years ago
Michael DeHaan 79015895ba Standardize docs 12 years ago
Stoned Elipot e320616974 Fix empty requirements specifications in modules documentation
And also be liberal in what ansible-doc accepts as an empty
requirements specification.

While here fix a typo in template module documentation
wrt jinja2 overrides example.
12 years ago
Michael DeHaan e0f0278ad8 Move mail into the notification bucket. 12 years ago
Michael DeHaan a715a86cd1 Slight tweak to set_fact variable documentation to clarify scope info. 12 years ago
Michael DeHaan cd97a4cb14 Allow modules to be categorized, and also sort them when generating the documentation. 12 years ago