Commit graph

5408 commits

Author SHA1 Message Date
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
Antti Salminen
36b7287375 Find the actual commit annotated tags refer to instead of the tag object. 2014-10-07 22:00:20 +03:00
James Cammarata
e94175d7d0 Merge pull request #128 from lorin/apt-key-doc
apt_key: add keyserver example to docs
2014-10-07 13:21:31 -05:00
James Cammarata
ee93a88418 Merge pull request #120 from tjanez/doc-simplify_isdir_condition
Simplified condition in a stat module example testing if path is a directory
2014-10-07 12:56:35 -05:00
Patrik Lundin
e463400412 Simplify self.arguments logic.
Strange logic pointed out by @jarmani, thanks!
2014-10-06 21:20:20 +02:00
Patrik Lundin
924cf20cf8 Depend more on rcctl if it is present.
* Make the module support enable/disable of special services like pf via rcctl.
  Idea and method from @jarmani.
* Make the module handle when the user supplied 'arguments' variable does not
  match the current flags in rc.conf.local.
* Update description now that the code tries to use rcctl for everything if it
  is available.
2014-10-06 21:20:20 +02:00
Patrik Lundin
5f37624eb4 Tweak error checking for "enabled" code.
Based on input from @jarmani:
* A return value of 2 now means a service does not exist. Instead of
  trying to handle the different meanings of rc after running "status",
  just look at stderr to know if something failed.
* Skip looking at stdout to make the code cleaner. Any errors should
  turn up on stderr.
2014-10-06 21:20:20 +02:00
Patrik Lundin
c6dd88c1d1 Fail if "rcctl status" writes to stderr. 2014-10-06 21:20:20 +02:00
Patrik Lundin
1a8cdb5e3e Check rc and print error message if any.
It is probably good to use stdout before printing a generic error
message as well.
2014-10-06 21:20:20 +02:00
Patrik Lundin
c46e030100 Make "enabled" code aware of --check mode. 2014-10-06 21:20:20 +02:00
Jonathan Armani
1b97390765 Add enable / disable of services for OpenBSD if rcctl is present 2014-10-06 21:20:20 +02:00
Lorin Hochstein
3ab26c538b apt_key: add keyserver example to docs 2014-10-03 15:10:45 -04:00
Jon Hadfield
9e0565e58f Remove redundant check for creates argument. 2014-10-03 13:00:11 +01:00
Tadej Janež
661b452fe3 Simplified condition in a stat module example testing if path is a directory. 2014-10-02 18:17:27 +02:00
James Cammarata
cb69744bce Adding file doc fragment to those modules in files/ missing it 2014-10-01 20:55:50 -05:00
Matt Martz
5dcc0ff0d9 Don't count DELETED servers when adding new servers 2014-10-01 18:30:40 -05:00
Matt Martz
fbadfd5902 Fix determination if a few configurations change in the launch config 2014-10-01 18:24:48 -05:00
Matt Martz
924bff9481 Ensure that files is the right type, and that we send the formatted personality var 2014-10-01 18:24:47 -05:00
Matt Martz
0a399fd971 Support config_drive and user_data in rax_scaling_group 2014-10-01 18:24:47 -05:00
Michael DeHaan
1c2995d71f Merge pull request #77 from major/suggest-selinux-enforcing
Updating SELinux example doc in lininefile module
2014-10-01 11:53:24 -04:00
Michael DeHaan
797dc9d09a Merge pull request #87 from offby1/devel
Tweak docs to mention `replace`
2014-10-01 11:45:18 -04:00
Nate Coraor
204a0dc131 Fix a few bugs and misbehavior in the hg module:
1. Don't pull when `dest` is already at the desired changeset.
2. Don't change the working copy when cleaning or pulling and a revision
   was specified.
3. Change the default for the `revision` param to match the behavior of
   hg.
2014-10-01 00:31:33 -04:00
Jérémie Astori
1e9680aa6b Fix #91: Expand user home folder for the key_file path of the git module 2014-09-30 23:04:54 -04:00
Chris Church
c9f8dcff99 Update win_feature module to work on server 2008 and fail with error message on non-server windows, fix output messages and error handling. 2014-09-30 16:41:34 -04:00
Eric Hanchrow
cc0a38d268 Tweak docs to mention replace 2014-09-30 10:52:03 -07:00
Chris Church
3a40d79cff Update win_user module to support more user options and group membership changes. 2014-09-30 11:51:05 -04:00
Major Hayden
6d697780f9 Updating SELinux example doc in lininefile module
Encouraging users to use this Ansible module to enable SELinux seems
like a better idea. It also warms Dan Walsh's heart.

Signed-off-by: Major Hayden <major@mhtx.net>
2014-09-30 07:12:23 -05:00
sterutkb
2cecd799c2 Added support for deploying virtual machine from a virtual template 2014-09-30 11:20:59 +02:00
Chad Nelson
37ed9b19ef Chnge option name to track_submodule_branches.
Update documentation to reflect what the actual effect of the option.
2014-09-29 22:36:13 -04:00
Chad Nelson
30aae62e25 Give option on how git tracks submodules.
Allows user to decide if git submodule should track branches/tags or track commit hashes defined in the superproject.

Add track_branches parameter to the git module.

Defaults to track branches behavior.
2014-09-29 22:36:13 -04:00
Michael Scherer
9cbd4d0fad Fix old ticket #9092 where a playbook can enter in recursion
This can be tested with this command :

    ansible -c local -m copy -a 'src=/etc/group dest=foo/' all

This is a corner case of the algorithm used to find how we should
copy recursively a folder, and this commit detect it and avoid it.

Check https://github.com/ansible/ansible/issues/9092 for the story
2014-09-29 18:02:42 -04:00
Joe Adams
2206d4b1e0 Added note to files/synchronize module about synchronizing two directories on the same host 2014-09-29 17:02:08 -04:00
Tongliang Liu
e26cbb6ace Added support of returning owner's group name in stat module 2014-09-29 13:25:46 -07:00
anatoly techtonik
7f9305b24e files.stat: Expose path in returned result
This is needed to apply subsequent operation on tested path
2014-09-29 17:59:23 +03:00
Michael DeHaan
db5668b84c Update README.md 2014-09-26 18:55:32 -04:00
Michael DeHaan
617a52b20d Fix filename error. 2014-09-26 17:06:31 -04: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
8cdea3edf0 Core/extras split WIP. 2014-09-26 09:45:31 -04:00
Michael DeHaan
7e94a05dd6 Core/Extras splitting WIP. 2014-09-26 09:40:58 -04:00
Michael DeHaan
dc8540c755 Not core. 2014-09-26 09:32:13 -04:00
Michael DeHaan
1e47a969b8 Fix typo in README filename 2014-09-26 09:26:39 -04:00
Michael DeHaan
73123b69fa Move modules into subdirectory. 2014-09-26 09:23:50 -04:00
Michael DeHaan
b2b5cc032c Add basic top level files. 2014-09-26 09:21:20 -04:00
James Cammarata
a099a3c7f5 Merge branch 'admiller/async_resume' of https://github.com/maxamillion/ansible into maxamillion-admiller/async_resume 2014-09-25 15:28:53 -05:00