Commit Graph

64 Commits (5ae3bbaf05f5b08e688c0290a0103bf0dd94c421)

Author SHA1 Message Date
Brian Coca 9f88bdb7f5 moved version added 10 years ago
Brian Coca a97d1016dc minor cleanup, removing unused/redundant code, cleaned some comments, slight reformating in class to
remove kwargs
10 years ago
Brian Coca 82aaaa4152 Merge pull request #23 from ravibhure/devel
Added module haproxy, to handle enable/disable backend server with shutdown_sessions feature in haproxy.
10 years ago
Ravi Bhure d4a096f7ff Recorded the changes suggested by brian coca 10 years ago
Brian Coca cf215dbac4 minor doc tweaks to snmp_facts 10 years ago
Ravi Bhure 44b2cdb5f2 used ansible conventions to use trigered action ==> state,
now only two states are available enabled/disabled_
get weight for backend server, is default behavior for both state,
supports set weight while enable server in lb pool
10 years ago
Ravi Bhure bcbe945a41 Instead of action [enable_server,disable_server] we prefer to use state [enabled,disabled] [FIXED]
misplaced the checkmode support (#L146) [FIXED]
no need to check if host is not set as the argument spec (#L138), it should already complain about that [FIXED]
10 years ago
Ravi Bhure 78365ecf06 updated version 1.9 and
moved haproxy module to network category
10 years ago
Brian Coca 68bd8a55ae Merge pull request #99 from ogenstad/devel
Snmp module for Ansible
10 years ago
ogenstad 24822322d4 1.9 10 years ago
ogenstad d4069bbc71 added_version -> 1.9 and file move 10 years ago
Michael Warkentin 691e424587 Fix typo: `authenicate` -> `authenticate` 10 years ago
Michael DeHaan 1e777bb508 Fix rename error. 10 years ago
Michael DeHaan 73123b69fa Move modules into subdirectory. 10 years ago
James Cammarata 1ef592ff00 Push the expanduser call on the source down to slurp rather than fetch
Also moves the calculation of the destination file name until after
the slurp of the file contents, since the source as returned by slurp
may now be different, so we want to use that expanded path locally.

Fixes #8942
10 years ago
Will Thames 25c5250025 get_url module: Add timeout parameter 10 years ago
George Yoshida cd0dae890c For content-disposition response header field, try to parse filename parameter even if it's not quoted. 10 years ago
Brian Coca ac14a8d6ad unified calls to fs function vs duplicate functions for file and
directory
11 years ago
James Cammarata a9c2eefd06 Remove erroneous set of status_code causing a traceback in module uri
Fixes #7416
11 years ago
Christian Berendt bbcfda8c18 [get_url] check against lowered stripped sha256sum
The content of the sha256sum attribute should be lowered before comparing it with the calculated sha256sum.

In the following example the used sha256sum uses ABC.. and not abc.. and the check failed. This should not happen.

```
TASK: [get_url url=http://ftp.fau.de/apache/hadoop/common/hadoop-2.4.0/hadoop-2.4.0.tar.gz dest=/home/vagrant/hadoop-2.4.0.tar.gz mode=0644 sha256sum=024326AC68A1A68B5566B10F95609EAAFD9F70CFEB37FCA0E97CBB1674E57C3A] ***
failed: [instance000] => {"failed": true}
msg: The SHA-256 checksum for /home/vagrant/hadoop-2.4.0.tar.gz did not match 024326AC68A1A68B5566B10F95609EAAFD9F70CFEB37FCA0E97CBB1674E57C3A; it was 024326ac68a1a68b5566b10f95609eaafd9f70cfeb37fca0e97cbb1674e57c3a.

FATAL: all hosts have already failed -- aborting
```
11 years ago
James Cammarata 89d61b8a7d Add parameters to get_url for the url username/password
Fixes #6928
11 years ago
James Tanner c69608cbe6 Fixes #6857 Make the url parameter required for get_url 11 years ago
Michael DeHaan b06f5162cd Example cleanup. 11 years ago
Sven Schliesing 898346a468 Update uri 11 years ago
Sven Schliesing d193e5571d Example for queueing build in Jenkins 11 years ago
Michael DeHaan eb1c37c6e1 Merge pull request #6649 from picsolvebryan/devel
Accept status code from a list of valid codes.
11 years ago
bryan hunt dff1fd3b37 Accept status code from a list of valid codes.
(cast the list of acceptable codes to a list of int )
11 years ago
bryan hunt eb9ac9308c Accept status code from a list of valid codes. 11 years ago
bryan hunt 5561fbc427 Accept status code from a list of valid codes. 11 years ago
James Cammarata c68be8b418 Remove validate_certs parameter from fetch_url calls 11 years ago
James Cammarata a1b1182662 Validate SSL certs accessed through urllib*
* Adds another module utility file which generalizes the
  access of urls via the urllib* libraries.
* Adds a new spec generator for common arguments.
* Makes the user-agent string configurable.

Fixes #6211
11 years ago
James Cammarata 09eaa0c920 Fixing the unicode issue in uri for EL6 platforms
Fixes #5869
11 years ago
James Cammarata 0c33cc19bb Handle unicode content in the uri module properly
Fixes #5869
11 years ago
Richard Isaacson acf0e408ae Merge pull request #5826 from romeotheriault/fix_follow_redirects
A fix for uri module regarding following redirects. The old behavior would follow redirects either way. This change clarifies the functionality and makes it a bit more explicit. Comparing the old behavior to the new 'yes' == 'all', 'no' == 'safe' and now 'no' will not follow any redirects. Historic behavior is still supported and documented with a push to the new values.
11 years ago
Eric Hanchrow 837d8e19b9 Clarify doc for get_url
Move a sentence from doc for the "force" option to that for the "dest" option.
11 years ago
James Cammarata b8356b525a When force=yes, get_url should always download the specified file
This is accomplished by not setting the If-Modified-Since header,
and setting "cache-control: no-cache" instead. Note that if the
file content has not changed, the module will still report that
changed=false, as the md5's of the tmp file and existing file are
compared before swapping

Fixes #5104
11 years ago
Pedro Romano b04f197113 Allow the 'PATCH' method in the 'uri' module since 'httplib2' allows it
and some APIs require it.
11 years ago
Romeo Theriault 863bba498c fix following redirects 11 years ago
Michael DeHaan 0d3a74d905 ansible -> ansibleworks 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
Michael DeHaan 4c35b7f380 There's a cleaner way to do this, commit to module formatter pending.
Revert "No longer need to reference 'version_added' in docs for these, as this was quite a while ago."

This reverts commit ff0a41d446.
11 years ago
Michael DeHaan 9e4d71203d No longer need to reference 'version_added' in docs for these, as this was quite a while ago. 11 years ago
Michael DeHaan 08996d78d6 Add version_added to all modules missing version_added information, the docs formatter will now
raise errors when omitted, updated changelog with new modules.
11 years ago
jctanner 0ee5792849 Merge pull request #4785 from Tinche/get_url/uri-content-disposition
Modified the get_url module to respect the content-disposition header if...
11 years ago
Tin Tvrtkovic b1fa35ac3d Use the final URL from the finished request instead of the provided URL for filename generation, to properly deal with redirects. 11 years ago
James Laska 1d368f9e1f Correct documentation URLs 11 years ago
Tin Tvrtkovic 8036cb0cab Modified the get_url module to respect the content-disposition header if the destination is a directory and the server provides it.
See http://www.w3.org/Protocols/rfc2616/rfc2616-sec19.html, section 19.5.1.
11 years ago
Michael Scherer 93a75a4d83 Fix issue 4433, make sure status is a int rather than a string 11 years ago
Joshua Lund bf5a4cbea4 * Updated SHA-256 functionality in the get_url module
(fixes issue #4277)

* The sha256sum error message now displays the invalid
  destination checksum if it doesn't match the one that
  is specified in the arguments. This is useful for
  debugging purposes.

* Non-alphanumeric characters, including the infamous
  Unicode zero-width space, are removed from the sha256sum
  argument prior to the check.
11 years ago