Commit Graph

8921 Commits (6c0ce20ad7642f4a3c18faac29ccbab68b864470)
 

Author SHA1 Message Date
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
8 years ago
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
8 years ago
jctanner 713863a37e git: add a umask parameter (#4473)
Sources #10504
Fixes #10279
8 years ago
nishiokay a24398d025 Add ipv6 paramater to digital_ocean module (#4447) 8 years ago
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
8 years ago
Peter Sprygada 91a839f1e3 Merge pull request #4458 from jedelman8/devel
improve working with trunks with nxos_switchport
8 years ago
Jason Edelman 5dc29dbc8b added a period 8 years ago
Jason Edelman d49d61784f make aliases a list in the docstring 8 years ago
Jason Edelman 164021a6a8 remove commented out code, add alias, and doc 8 years ago
Jason Edelman c009fe7e66 updated version_added for new param 8 years ago
Jason Edelman 996a34fbf7 fixed error handling 8 years ago
Jason Edelman b8f6e130ed fixed docs 8 years ago
Jason Edelman 160fd0126f improve functionality for vlan trunks based on #4082 8 years ago
Chris Houseknecht ff2eae0729 Merge pull request #4457 from listx/devel
docker_service: fix files/project_files typo
8 years ago
Linus Arver 74c8954d86 docker_service: fix files/project_files typo
The original decision to rename from `project_files' to `files' was in
3a5dd00076.
8 years ago
Chris Houseknecht d796ab54b7 Merge pull request #4456 from chouseknecht/devel
Exposing tcp and udp for same port fails. Fixes issue #4354.
8 years ago
chouseknecht 95f69c55fa Exposing tcp and udp for same port fails. Fixes issue #4354. 8 years ago
Ryan Brown 8da5e2cb88 Merge pull request #4275 from shaunbrady/ec2_elb_lb_respect_vpc
Make ec2_elb_lb respect VPCs when resolving groups
8 years ago
Chris Short 013e91e9b0 find.py: Editing contains description to say regex (#4452)
find module contains argument appears to accept regex; correcting description accordingly
8 years ago
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
8 years ago
PikachuEXE 997fa3b2b7 Allow specifying human readable value for option `memory_limit` again (#4049) 8 years ago
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
8 years ago
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
8 years ago
Ryan Brown a2a6b5247f Merge pull request #4286 from rickmendes/fix-issue-4227
Clarify docs that led to #4227
8 years ago
jctanner a0f4c9ee45 git: Use a local copy of unfrackpath to avoid using ansible.lib (#4426)
Fixes #4425
8 years ago
Chris Houseknecht e5c530a488 Merge pull request #4416 from chouseknecht/devel
Fix network alias and network link comparison.
8 years ago
jctanner 0445697a8b git: If force=yes, apply --force to submodule updates to overwrite local changes (#4415)
Fixes #238
8 years ago
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
8 years ago
Brian Coca 89916af2a5 added meta as 'documentation' 8 years ago
Chris Houseknecht 09cf141bc2 Merge pull request #4407 from chouseknecht/devel
If debug true, include actions and differences in output.
8 years ago
chouseknecht 4c3bf24ebf
If debug true, include actions and differences in output. 8 years ago
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
8 years ago
Brian Coca decb2ec9fa doc fix 8 years ago
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.
8 years ago
Chris Houseknecht fdfdfe9017 Adding docker_network module. (#4404) 8 years ago
jctanner 4047096ac4 user: Cast all arguments to string before passing to run_command (#4398)
Fixes #4397
8 years ago
Matt Clay 6b166a76c4 Only run integration script if it exists. 8 years ago
Matt Clay 09e955ccfc Update call to generate-tests. 8 years ago
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.
8 years ago
Brian Coca 1eb01d7612 remove X bit 8 years ago
jctanner 37ea0b0b1f git: save changed submodules in check and non-check mode (#4392) 8 years ago
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().
8 years ago
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).
8 years ago
Brian Coca f3e761f0c8 improved logic when dealing with init scripts 8 years ago
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
8 years ago
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.
8 years ago
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.
8 years ago
Roman 78adaf2116 get_url headers param values parsing (#4245) 8 years ago
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.
8 years ago
Evan Kaufman 4905ab66d6 Fixes #3791 cron always returning changed state for multiline jobs (#4285)
Strip only newlines and carriage returns. Instead of stripping ALL whitespace, which may have unintended side effects
8 years ago