Commit graph

2651 commits

Author SHA1 Message Date
Yap Sok Ann
12c4bf51b8 git: Make function get_remote_head usable when cloning.
This allows the module to return the before/after revisions in all cases.
2013-10-16 20:37:07 +08:00
Yap Sok Ann
3ff0c6d50d git: Remove unnecessary return code checking.
The functions either return rc=0 or call fail_json themselves.
2013-10-16 20:37:06 +08:00
Yap Sok Ann
201ff02d1f git: Full length SHA-1 in, full length SHA-1 out.
This removes ambiguity at the expense of slight backward incompatibility.
2013-10-16 20:37:06 +08:00
James Tanner
56ffd4edbb Fixes #4532 Send easy_install to get_bin_path instead of None 2013-10-15 18:15:08 -04:00
James Tanner
875a7aa020 fix indentation in easy_install module docstring 2013-10-15 12:49:43 -04:00
James Cammarata
57cec2a88b Handle ssh key files that may only have a type/key specified
If a specified key did not have a comment, it would be ignored as
an invalid key.

Fixes #4513
2013-10-15 09:05:50 -05:00
Stefan Heinemann
576f5813a2 Set the options of an authorized key comma separated
According to the sshd man page, no spaces are permitted between the
options of an authorized ssh key
2013-10-15 15:29:52 +02:00
Stefan Heinemann
948713db5e Don't mind the options of a key when removing it
This allows to remove a key without knowing the options in the
authorized_key file
2013-10-15 15:29:47 +02:00
Michael DeHaan
4503cbebc0 Added "debug: var=variableName" capability. 2013-10-14 21:01:38 -04:00
Michael DeHaan
05251f2745 Merge pull request #4346 from dmkoch/digitalocean-droplet-options
Add "virtio" and "private_networking" options for DigitalOcean droplets
2013-10-14 17:05:06 -07:00
Michael DeHaan
4105af455e Merge pull request #4488 from renanivo/devel
create install_options parameter for homebrew module
2013-10-14 16:47:59 -07:00
jctanner
c617705687 Merge pull request #4470 from jyap808/patch-1
Assume state='directory' if recurse is set and previous state was 'direc...
2013-10-14 13:49:35 -07:00
Michael DeHaan
a3df406554 Add note about feature being new in 1.4 2013-10-14 11:57:19 -04:00
Constantine Peresypkin
c2eef4d139 add support for disk_config option to cloud/rax module 2013-10-14 11:57:19 -04:00
Michael DeHaan
377b3f4b6f Merge branch 'devel' of git://github.com/shirou/ansible into devel 2013-10-14 11:50:25 -04:00
Pedro Romano
c73d8012b4 Implement a '_get_easy_install' helper function to find the desired
'easy_install' executable, modeled on '_get_pip'
from the 'pip' module to correctly handle all combinations of explicit
executable and virtualenv.
2013-10-14 11:48:45 -04:00
Pedro Romano
1391add126 Refactor helper function '_get_pip' to handle the cases where an absolute
path explicit executable is passed to the task and to look for an explicit executable
by basename in a virtualenv if that is specified.
2013-10-14 11:48:28 -04:00
Pedro Romano
8a843e997f New module argument to specify the executable used for running 'pip'. This allows support for system installation of packages on systems with multiple installations of Python. 2013-10-14 11:48:28 -04:00
Pedro Romano
506d476d9d New module argument to specify the executable used for running 'easy_install'. This allows support for system installation of packages on systems with multiple installations of Python. 2013-10-14 11:48:27 -04:00
Pedro Romano
0f2722d761 Rename copy/pasted variables more appropriately. 2013-10-14 11:47:59 -04:00
Pedro Romano
ddcac647ff Changes examples from using Flask to some other package (Bottle was chosen) as per @mpdehaan's suggestion. 2013-10-14 11:47:59 -04:00
Michael DeHaan
6e4c1bf4fa Slight tweak to ovirt module docs. 2013-10-14 11:43:01 -04:00
Michael DeHaan
98045673eb Update version_added in ovirt module. 2013-10-14 11:41:24 -04:00
Michael DeHaan
459af0a7c5 Merge pull request #3838 from vincentvdk/ovirt-mod
added new module "ovirt"
2013-10-14 08:40:07 -07:00
Michael DeHaan
2587298f5d Some minor doc updates for the acl module. 2013-10-14 11:36:48 -04:00
Michael DeHaan
1158164c90 Merge pull request #3610 from bcoca/acl_module
initial draft acl module
2013-10-14 08:32:10 -07:00
Brian Coca
6db8c642d5 added long names to support older version as per feedback
Signed-off-by: Brian Coca <briancoca+dev@gmail.com>
2013-10-14 10:48:30 -04:00
Jurrien Bloemen
d56db0c85a Added full path to rhnreg_ks command for working correctly with sudo. 2013-10-14 16:05:01 +02:00
Keith Buck
5397f90f0c Improve the formatting and content for the sysctl module's description. 2013-10-14 07:16:47 +00:00
Eric Johnson
b212632808 update defaults and help for 'name' and 'instance_names' 2013-10-13 13:48:09 -07:00
Eric Johnson
b4533c880b address a few review comments 2013-10-13 13:41:55 -07:00
Renan Ivo
ecb9b2ea0f update version_added of homebrew module 2013-10-13 15:32:51 -03:00
Renan Ivo
086da3dafc set default options value to None in homebrew module 2013-10-13 10:42:12 -03:00
Renan Ivo
d038ea2956 create install_options parameter to homebrew module 2013-10-13 10:24:07 -03:00
Michael DeHaan
2921775944 Merge pull request #4477 from eggsby/devel
supervisorctl: user expansion on config filepath
2013-10-13 06:22:02 -07:00
Joe Maller
f7e30347f6 ignore src when file module state=absent 2013-10-13 01:22:53 -04:00
Thomas Omans
e83eb54d1f supervisorctl: user expansion on config filepath 2013-10-12 15:57:42 -07:00
Michael Scherer
93a75a4d83 Fix issue 4433, make sure status is a int rather than a string 2013-10-12 22:10:40 +02:00
Harrison Gu
e31927a03e Fix bug for setting ec2 tags 2013-10-12 20:57:32 +08:00
Julian Yap
48d2747b6a Assume state='directory' if recurse is set and previous state was 'directory'
Resolves this issue: https://github.com/ansible/ansible/issues/2067
2013-10-11 15:56:14 -10:00
Andrew Pope
4e56510fab Fixed broken force=yes on files for directories 2013-10-11 18:02:18 -04:00
James Cammarata
2753a40d5a Adding 'unique' option to authorized_key module and cleanup
A small refactoring of the authorized_key module to accomodate these
changes, plus fixing some things like not rewriting the file on every
new key. These changes bring the original feature for ssh options in-
line with the comments in #3798

Fixes #3785
2013-10-11 16:22:37 -05:00
David Minor
0828d3a316 Add ssh key options parameter to authorized_key module 2013-10-11 16:22:37 -05:00
Michael DeHaan
04744ca706 Make add_host clear the inventory pattern cache, add some more aliases. Fixes #4442. 2013-10-11 16:37:10 -04:00
Andy Kluger
1cc0a8af6d Corrected docs ("monitor" -> "monitoring" and dissociated monitoring from instance_tags in examples) 2013-10-11 13:32:23 -04:00
James Tanner
d03211cf6b Remove all sys.exit calls in the cloud/s3 module
Fixes #4458
2013-10-11 11:28:47 -04:00
jctanner
aeccb4c06e Merge pull request #4457 from mbarrin/devel
Fixed crash when s3 bucket did not exist for put operation
2013-10-11 08:18:51 -07:00
Matthew Barrington
e16e77249f Fixed crash when s3 bucket did not exist for put operation 2013-10-11 16:01:54 +01:00
Jimmy Tang
878fd17bc6 This oneliner change allows apt-key to inherit the http_proxy variable.
Before this fix

  TASK: [apt_repository repo='ppa:vbernat/haproxy-1.5'] *************************
  failed: [134.226.115.202] => {"cmd": ["apt-key", "adv", "--recv-keys", "--keyserver", "keyserver.ubuntu.com", "CFFB779AADC995E4F350A060505D97A41C61B9CD"], "failed": true, "rc": 2}
  stderr: gpg: requesting key 1C61B9CD from hkp server keyserver.ubuntu.com
  gpg: no valid OpenPGP data found.
  gpg: Total number processed: 0

After the fix

  TASK: [apt_repository repo='ppa:vbernat/haproxy-1.5'] *************************
  changed: [134.226.115.202]
2013-10-11 15:19:52 +01:00
Michael DeHaan
c586ed5168 Merge pull request #4342 from pileofrogs/devel
mysql_replication switch to DictCursor for compatibility with more mysql server versions
2013-10-11 06:21:22 -07:00