Commit graph

8973 commits

Author SHA1 Message Date
Peter Sprygada
2961087f26 added new functionality to ios_command
* commands argument now accepts a dict arguments[1]
* waitfor has been renamed to wait_for with an alias to waitfor
* only show commands are allowd when check mode is specified
* config mode is no longer allowed in the command stack
* add argument match with valid values any, all

[1] The commands argument will now accept a dict argument that can
specifiy the output format of the command.  To specify a dict argument
use the form of { command: <str>, output: <str>, prompt: <str>,
response: <str> }.  Command and output are required arguments. Output
accepts valid values text and json.
2016-08-22 11:46:27 -04:00
Peter Sprygada
73352bb9a3 update nxos_config with new arguments
* add src argument to provide path to config file
* add new choice to match used to ignore current running config
* add update argument with choices merge or check
* add backup argument to backup current running config to control host
* add defaults argument to control collection of config with or without defaults
* add save argument to save current running config to startup config
* add state argument to control state of config file
* deprecated force argument, use match=none instead
2016-08-21 08:50:59 -04:00
Peter Sprygada
f6dab64bc5 merge functions from ios into ios_config
* merge changes from ios shared module functions into ios_config.
* add src argument to provide path to config file
* add new choice to match used to ignore current running config
* add update argument with choices merge or check
* add backup argument to backup current running config to control host
* add defaults argument to control collection of config with or withoutdefaults
* add save argument to save current running config to startup config
* add state argument to control state of config file
* deprecated force argument, use match=none instead
2016-08-20 08:11:20 -04:00
jctanner
713863a37e git: add a umask parameter (#4473)
Sources #10504
Fixes #10279
2016-08-19 14:59:10 -04:00
nishiokay
a24398d025 Add ipv6 paramater to digital_ocean module (#4447) 2016-08-19 09:07:47 +02:00
Toshio Kuratomi
90673cf6db Refactor stat.py so that it would be more friendly for unittests. (#4462)
* Refactor stat.py so that it would be more friendly for unittests.

* PEP8ify since we're moving most of the lines in the file and there's no open PRs
2016-08-18 13:16:06 -07:00
Peter Sprygada
91a839f1e3 Merge pull request #4458 from jedelman8/devel
improve working with trunks with nxos_switchport
2016-08-18 08:29:54 -04:00
Jason Edelman
5dc29dbc8b added a period 2016-08-18 07:21:32 -04:00
Jason Edelman
d49d61784f make aliases a list in the docstring 2016-08-18 07:00:19 -04:00
Jason Edelman
164021a6a8 remove commented out code, add alias, and doc 2016-08-18 06:53:04 -04:00
Jason Edelman
c009fe7e66 updated version_added for new param 2016-08-17 19:43:32 -04:00
Jason Edelman
996a34fbf7 fixed error handling 2016-08-17 19:19:07 -04:00
Jason Edelman
b8f6e130ed fixed docs 2016-08-17 19:15:25 -04:00
Jason Edelman
160fd0126f improve functionality for vlan trunks based on #4082 2016-08-17 19:11:50 -04:00
Chris Houseknecht
ff2eae0729 Merge pull request #4457 from listx/devel
docker_service: fix files/project_files typo
2016-08-17 17:30:52 -05:00
Linus Arver
74c8954d86 docker_service: fix files/project_files typo
The original decision to rename from `project_files' to `files' was in
3a5dd00076.
2016-08-17 14:50:27 -07:00
Chris Houseknecht
d796ab54b7 Merge pull request #4456 from chouseknecht/devel
Exposing tcp and udp for same port fails. Fixes issue #4354.
2016-08-17 16:13:49 -05:00
chouseknecht
95f69c55fa Exposing tcp and udp for same port fails. Fixes issue #4354. 2016-08-17 17:03:37 -04:00
Ryan Brown
8da5e2cb88 Merge pull request #4275 from shaunbrady/ec2_elb_lb_respect_vpc
Make ec2_elb_lb respect VPCs when resolving groups
2016-08-17 14:06:25 -04:00
Chris Short
013e91e9b0 find.py: Editing contains description to say regex (#4452)
find module contains argument appears to accept regex; correcting description accordingly
2016-08-17 11:53:05 -04:00
Alexey Sheplyakov
5f1ac88414 apt_key: fix spurious failure to import a subkey (#4366)
Importing a (sign only) subkey with apt_key module always fails,
however the actual keyring gets created and contains the correct keys.
Apparently the all_keys function skips the subkeys, hence the problem.

Fixes #4365
2016-08-16 18:01:07 +02:00
PikachuEXE
997fa3b2b7 Allow specifying human readable value for option memory_limit again (#4049) 2016-08-16 08:44:24 -04:00
jctanner
45c1ae0ac1 git: set the file:// protocol if needed and refactor HEAD parser (#4434)
* make HEAD parsing more robust
* Fail the module for any splitter errors
* fix combining depth and version on filepath urls by prepending file://

Addresses #907
2016-08-15 19:54:44 -04:00
Timmo Verlaan
2942b383c4 [git] Determine branch name more reliable (#907)
* Made some changes to determine branch name more reliable (it may contain slashes now).

* Determination of branch name more reliable, as per comment on PR #907
2016-08-15 14:54:11 -04:00
Ryan Brown
a2a6b5247f Merge pull request #4286 from rickmendes/fix-issue-4227
Clarify docs that led to #4227
2016-08-15 12:27:01 -04:00
jctanner
a0f4c9ee45 git: Use a local copy of unfrackpath to avoid using ansible.lib (#4426)
Fixes #4425
2016-08-15 12:22:55 -04:00
Chris Houseknecht
e5c530a488 Merge pull request #4416 from chouseknecht/devel
Fix network alias and network link comparison.
2016-08-12 17:06:42 -05:00
jctanner
0445697a8b git: If force=yes, apply --force to submodule updates to overwrite local changes (#4415)
Fixes #238
2016-08-12 18:06:02 -04:00
chouseknecht
e7abbbf134 Fix network alias and network link comparison.
- Using set based comparison was not working consistently
  - With != operator worked locally but consistently failed on Travis
  - With 'not in' operator failed locally and on Travis
2016-08-12 18:01:11 -04:00
Brian Coca
89916af2a5 added meta as 'documentation' 2016-08-12 15:41:20 -04:00
Chris Houseknecht
09cf141bc2 Merge pull request #4407 from chouseknecht/devel
If debug true, include actions and differences in output.
2016-08-12 11:22:20 -05:00
chouseknecht
4c3bf24ebf
If debug true, include actions and differences in output. 2016-08-12 12:14:34 -04:00
Chris Houseknecht
70806fcfe4 Some post merge clean up: (#4406)
- Removed required_if.
  - Fixed doc strings.
  - Removed debug output being appended to actions.
  - Put import of basics at bottom to be consistent with other docker modules
  - Added 'containers' alias to 'connected' param
  - Put facts in ansible_facts.ansible_docker_network
2016-08-12 10:40:46 -04:00
Brian Coca
decb2ec9fa doc fix 2016-08-12 09:53:57 -04:00
Rob Cutmore
0acbbdf0c4 Git: Determine if remote URL is being changed (#4243)
* Git: Determine if remote URL is being changed

Ansible reported there were no changes when only the remote URL for a
repo was changed. This properly tracks and reports when the remote URL
for a repo changes.

Fixes #4006

* Fix handling of local repo paths

* Git: Use newer method for fetching remote URL

* Git: use ls-remote to fetch remote URL

Using ls-remote to fetch remote URL is supported in earlier versions
of Git compared to using remote command.

* Maintain previous behavior for older Git versions

Previously whether or not the remote URL changed was not factored
into command's changed status. Git versions prior to 1.7.5 lack the
functionality used for fetching a repo's remote URL so these versions
will update the remote URL without affecting the changed status.
2016-08-12 09:53:06 -04:00
Chris Houseknecht
fdfdfe9017 Adding docker_network module. (#4404) 2016-08-12 09:52:37 -04:00
jctanner
4047096ac4 user: Cast all arguments to string before passing to run_command (#4398)
Fixes #4397
2016-08-11 19:16:24 -04:00
Matt Clay
6b166a76c4 Only run integration script if it exists. 2016-08-11 15:51:08 -07:00
Matt Clay
09e955ccfc Update call to generate-tests. 2016-08-11 15:45:33 -07:00
Lucas Costa Beyeler
5559e6a669 Fix #4202: Can't unarchive remote files (#4244)
When you try to remote unarchive files with the option copy=no the code always fail, as evidenced in issue #4202. That happens because the conditional to check "if remote_src=no or copy=yes" will always be true since the default value of them is remote_src=no and copy=yes.
My modification is only to change the condition from or to and, that way only if both the vars stay with the default value will be true, otherwise you can unarchive remote files.
2016-08-11 11:23:29 -07:00
Brian Coca
1eb01d7612 remove X bit 2016-08-11 14:21:24 -04:00
jctanner
37ea0b0b1f git: save changed submodules in check and non-check mode (#4392) 2016-08-11 14:14:20 -04:00
Dag Wieers
f5f1ec65e4 Add diff mode support to git module (#3364)
* Add diffmode support to git module

This patch adds missing diffmode support to the git module.

* Remodel get_diff() and calls to it

As proposed by @abadger

* Ensure we fetch the required object before performing a diff

Also we handle the return code ourselves, so don't leave this up to run_command().
2016-08-11 13:27:32 -04:00
Indrajit Raychaudhuri
23ebb98570 Improve hostname module to support systemd in more generic way (#4382)
Now that there is general purpose `Fact` helper to detect if systemd
is active, we would be able to rely on that to apply SystemdStrategy.

Detecting presence of systemd at runtime would be more reliable than
distribution version based heuristics. (e.g., Debian, Ubuntu allows
user to change the default init system, Gentoo allows switching as
well, and so on).
2016-08-11 17:44:16 +02:00
Brian Coca
f3e761f0c8 improved logic when dealing with init scripts 2016-08-11 09:43:16 -04:00
Brian Coca
92b4ae4768 fixes corner case for systemd services
when both unit file and sysv init script exist
Thanks to @olfway for fix.

fixes #3764
2016-08-11 09:24:42 -04:00
Dag Wieers
4fddb21980 Improve the documentation (#4385)
Improvements to make it more clear that pure compressed files (.gz, .bz2 and .xz) files are not supported.

This improves on #3241.
2016-08-11 08:53:37 -04:00
Sam Doran
06e9dc5236 Improve regexp for matching file permissions (#4306)
A capital "S" appears when the the setuid or setgid bit are set but have no effect. Likewise, a capital "T" appears when the sticky bit is set but it has no effect.
2016-08-10 23:54:29 +02:00
Roman
78adaf2116 get_url headers param values parsing (#4245) 2016-08-10 23:49:58 +02:00
Evan
b5ad8b83be pip: Fix uninitialized variable during check_mode (#4379)
During check_mode (`--check`), the variable change could be
used uninitialized, yielding this error:

`UnboundLocalError: local variable 'changed' referenced before assignment`

This changeset simply initializes it to False.
2016-08-10 23:45:54 +02:00