Commit graph

5537 commits

Author SHA1 Message Date
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
billwanjohi
ff36edbb11 user: add expired state
ported from
https://github.com/ansible/ansible/pull/6303

It's very useful and routine to disable a *nix user.
I implemented expired instead of locked because this prevents any use of
the account, safer than just preventing password-based authentication.

I have tests [1], but since none of the suite came along with the core
modules, I'm unsure how to submit them.

[1] https://github.com/billwanjohi/ansible/blob/add_locked_state/test/integration/roles/test_user/tasks/main.yml
2014-09-29 22:42:28 +00:00
kustodian
82af074382 Set selinux state to 'permissive' for state=disabled 2014-09-30 00:33:55 +02:00
Michael Scherer
37d9903169 Add hostname to generated user SSH key comment
The default is not very useful to sort between different
keys and user. Adding the hostname in the comment permit to later
sort them if you start to reuse the key and set them in different
servers. See https://github.com/ansible/ansible/pull/7420
for the rational.
2014-09-29 18:07:41 -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
Phillip Holmes
7402827950 Route53 fix - forcing zone_in, record_in to lower case
Fixed the .tolower to .lower() for correct syntax (copied change from older notes).
2014-09-29 16:23:41 -05:00
Phillip Holmes
b3e84f2dd4 Route53 fix - forcing zone_in, record_in to lower case
It turns out the Route53 API cares if the zone and record specified in the playbook are lower case or not when deleting a record. If you use a variable to name your servers and care about case, using that same proper case name will cause Route53 DNS delete requests to fail.

The change requested adds .lower() to the module.params.get for both zone and record when used in the underlying code.

Both zone and record are mandatory variables, and as such a more complicated implementation is not needed, as they must always be specified when using this module see lines 169 and 170 for the required state).

If you use lowercase names (or don't use a name variable and share it between a tag and DNS entries) then you will never see this issue.

Tested/Confirmed as an issue in Ansible 1.6.6 and above.
2014-09-29 16:20:25 -05: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
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
2014-09-23 15:32:07 -05:00
James Cammarata
61f6a70401 Skip null id route tables when adding/deleting them in ec2_vpc
Fixes #8552
2014-09-23 14:51:56 -05:00
Steven Ringo
bcb78335cf Expand description for ec2_facts module 2014-09-23 08:53:57 +10:00
James Cammarata
dea00c767b Merge branch 'dmage-devel' into devel 2014-09-22 15:42:38 -05:00
James Cammarata
bb8bac490a Merge branch 'devel' of https://github.com/dmage/ansible into dmage-devel 2014-09-22 15:40:06 -05:00
Toshio Kuratomi
8b81062be0 The fix for gh-7284 causes problems for initscripts which have the
standards compliant return codes but return a verbose error message via
stdout.  Limit the times when we invoke the heuristic to attempt to work
around this.
2014-09-22 14:53:07 -04:00
Toshio Kuratomi
724b484577 Merge pull request #9084 from mscherer/fix9704/fix_service
Fix #9704, correctly set changed as false when nothing is done
2014-09-22 11:47:56 -04:00
Michael DeHaan
062cc9bd04 Merge pull request #9082 from mscherer/fix9080/file_not_working_py24
Make file module work on python 2.4, fix #9080
2014-09-21 19:18:44 -04:00
Michael Scherer
7420a450a5 Fix indentation and bug #8895 2014-09-21 17:12:29 +02:00
Michael Scherer
c9a0a7ae4b Fix #9704, correctly set changed as false when nothing is done 2014-09-21 14:55:31 +02:00
Michael Scherer
d15931f15a Make file module work on python 2.4, fix #9080
Python 2.4 do not support "except ... as ..." construct, so
revert back to the older syntax.
2014-09-21 01:50:58 +02:00
James Cammarata
0d0576a97f Add note on ec2_lc regarding immutability of configs once created
Fixes #8927
2014-09-19 15:17:46 -05:00
Toshio Kuratomi
74e466557d Merge pull request #9060 from jamespharaoh/apt-lang
add LANG=C to apt module so the string matches on the output always matc...
2014-09-19 12:30:15 -07:00
Toshio Kuratomi
7b100dd389 Be more specific in checking if a job restarted successfully.
Fixes: #9056
2014-09-19 12:03:27 -07:00
Toshio Kuratomi
36083c3b90 Failure to enable a service now fails the task
Fixes: 8855
2014-09-18 12:39:54 -07:00
James Pharaoh
27ccd01db4 add LANG=C to apt module so the string matches on the output always match 2014-09-18 20:56:21 +02:00
James Cammarata
d5546d7a0a Merge pull request #9052 from EvanDotPro/docs/fix-rax-public-key-example
Update rax root pubkey example
2014-09-18 13:25:36 -05:00
Evan Coury
54a979ddd3 Update rax root pubkey example
The example was showing how to use the `files` option to pass in a local file as an authorized public key for root. While this works, it's a bit sloppy, given that there's a specific option, `key_name` which will use one of your public keys on your rackspace account and add it as an authorized key for root. In our case, one of our admins didn't notice the `key_name` option because they scrolled straight to the example and saw the `files` strategy.

I propose that the example still shows `files`, but not using a root public key as an example, and instead also demonstrate the `key_name` option so that it's clear from the example how to get the initial root public key deployed.
2014-09-17 18:06:59 -07:00
Sam Pierson
3f8e45f864 [#9048] convert Route53 TTL to integer before comparison
boto/Route53 are returning TTL as a string.
The route53 module is comparing it with an integer and therfore thinks the DNS entry has always changed.
2014-09-17 14:47:27 -07:00
James Cammarata
633f86d30a Allow filtering by availability zone for exact_count with ec2
Fixes #8863
2014-09-17 15:49:26 -05:00
Toshio Kuratomi
a50258d26a remove debugging that was causing failure 2014-09-17 10:25:54 -07:00