Commit Graph

244 Commits (b718e10a88c1b4902fbf9402db3ed1c47b398db4)

Author SHA1 Message Date
Javier Palacios 9dcea19175 Allow relative path for bower executable
Add default value

Rename argument

Explicit verification of relative bower path

Add example

Old keyword name used in example

BUGFIX: tilde expansion actually useless on relative paths

Modify relative_execpath default value as suggested

Added version_added for relative_execpath

Update for last few comments on the bug report

* version to 2.1 since this feature enhancement will now go into 2.1
* set path and relative_execpath type to path
* Set default value of path to None
2016-12-08 11:33:43 -05:00
Charles Paul 3cd6e4c1f8 make dest use path type
path type
2016-12-08 11:33:42 -05:00
Michael Scherer d504253257 Simplify the code and remove use_unsafe_shell=True
While there is no security issue with this shell snippet, it
is better to not rely on shell and avoid use_unsafe_shell.
2016-12-08 11:33:41 -05:00
Matt Martz 22733a7574 Fix tabbed indentation in packaging/os/pkgutil.py 2016-12-08 11:33:40 -05:00
Michael Scherer df195b3076 Replace choices=BOOLEANS by type='bool', fix #1326 2016-12-08 11:33:40 -05:00
Marc Mettke 43d2e3ad68 Pacman Module Fixes
Update: query_package documentation
Fix: Number of Packages to Updated was one to high,
     'cause of counting the '\n'
Fix: Pacman was reinstalling state=latest packages,
     even when it was unable to load the remote version
2016-12-08 11:33:40 -05:00
Kirill Kozlov 6f663fa7bf Set latest as version argument default value 2016-12-08 11:33:38 -05:00
Brian Coca a9abec5a03 updated version version_added to 2.1 2016-12-08 11:33:38 -05:00
Dylan Martin 766b53b066 added version option 2016-12-08 11:33:38 -05:00
Michal Svab 5f743c4fdc maven_artifact: check whether snapshot is the latest snapshot 2016-12-08 11:33:38 -05:00
Guido Günther 13deae9b8f zypper: Add returncode to result
This will be used in integration tssts and makes the whole thing
more similar to the yum module.
2016-12-08 11:33:37 -05:00
Jiri tyr d4d24bac60 Adding yumrepo module
This patch is adding a new module which allows to add and remove YUM
repository definitions. The module implements all repository options
as described in the `yum.conf` manual page.
2016-12-08 11:33:36 -05:00
Indrajit Raychaudhuri 92efb6eb51 homebrew: Aditional examples for documentation 2016-12-08 11:33:34 -05:00
Indrajit Raychaudhuri 273d1c51e6 homebrew: Add explicit documentation for 'path' argument (with expected default)
In Homebew, a formula is installed in a location relative to the actual
`brew` command. The documentation clarifies that.

Additionally, removed redundant 'path' reconstruction in multiple places.
2016-12-08 11:33:34 -05:00
Robin Roth 85f2165273 better cope with rpm not returning package name
if the rpm query is missing a package name (or giving some error): fail soft

before the patch: the module fails because the installed_state dict is missing the package name

after the patch: the missing package is assumed to not be in the correct state and is installed/removed with zypper
2016-12-08 11:33:33 -05:00
xiaclo b36b12e968 Allow NPM to update packages 2016-12-08 11:33:33 -05:00
pmakowski 9ab42a98ca no-suggests is obsolete, switch to no-recommends 2016-12-08 11:33:33 -05:00
Kirill Kozlov 426613b00d Fix broken examples in docs 2016-12-08 11:33:32 -05:00
Ramunas Dronga 86bea2d6ab fixed composer usage example 2016-12-08 11:33:31 -05:00
Ramunas Dronga ae18a1d877 added constraint for space in composer command 2016-12-08 11:33:31 -05:00
Ramunas 662fa86f07 removed check for empty composer response 2016-12-08 11:33:31 -05:00
Ramunas Dronga 6e4b42ebbc added version info for params 'arguments' 2016-12-08 11:33:31 -05:00
Ramunas Dronga ae59ea7deb allow specify arguments for composer 2016-12-08 11:33:31 -05:00
Toshio Kuratomi 8c8c63110e Move existing check for root before we make expensive network calls 2016-12-08 11:33:31 -05:00
Brian Coca b7372b509a corrected extension in module spec fixes #1190 2016-12-08 11:33:31 -05:00
Toshio Kuratomi 9c75b5eac3 Make the pkg/name param into a list so that changes to make changes to _squash_items easier 2016-12-08 11:33:31 -05:00
Brian Coca d9a29f394f fixed missed passing use-sudo 2016-12-08 11:33:30 -05:00
james c2a4e230aa More consistent use of run_command() wrapper function, which now adds the default binary location to the search path 2016-12-08 11:33:30 -05:00
M0ses a1dbb83075 fix errorhandling in zypper.py module
package_latest was calling package_present but did not care
about the return code so errors in package_present were hidden
and everthing look ok on the console when zypper update did not fail,
but no packages where installed.
2016-12-08 11:33:29 -05:00
Christopher M. Fuhrman 5574516934 pkgin: Support multiple matching packages
pkgin searches for packages such as 'emacs' can return multiple matches,
the first of which is not guaranteed to match.  So, iterate through
found packages until we have an appropriate match.  Should we *not* find
a match, then return False indicating match failure.
2016-12-08 11:33:29 -05:00
Kevin b43329b6a0 Remove `homebrew-` prefix when checking if repo has already been tapped
See: https://github.com/Homebrew/homebrew/blob/master/Library/Homebrew/cmd/tap.rb

Example:

```
$ brew tap neovim/homebrew-neovim
$ brew tap
neovim/neovim
...
```
2016-12-08 11:33:26 -05:00
Brian Coca 1426c3ba02 added missing GPL licences fixes #508 2016-12-08 11:33:26 -05:00
Toby Fleming 3293fe7231 Homebrew: Allow colons, direct check for outdated formula 2016-12-08 11:33:26 -05:00
Indrajit Raychaudhuri e115f62a2d homebrew: Also add 'formula' as alias for 'name' and reformat 2016-12-08 11:33:25 -05:00
Indrajit Raychaudhuri c397dfe9ed homebrew: Improve 'argument_spec' handling
- Remove choice list for boolean values in argument_spec and make it
  more consistent with core modules
- Add 'package' alias and support for list type for 'name' parameter
- Added self as maintainer
2016-12-08 11:33:25 -05:00
Toshio Kuratomi 7ccd6a4de0 Change documented requirement from dnf to python-dnf as dnf could be taken to mean the command line tool.
Fixes #1032
2016-12-08 11:33:25 -05:00
Brian Coca ae84177514 switched to use module loggigng 2016-12-08 11:33:24 -05:00
Brian Coca a04972c79b changed use_sudo to system_lib (kept alias) and expanded description to explain how it works 2016-12-08 11:33:24 -05:00
Milad Soufastai c3c9f46ba4 Updating Description to provide better explanation of what the use_sudo flag does 2016-12-08 11:33:24 -05:00
Milad Soufastai 07a4ab2fc5 Adding the --sudo flag for CPANM use since the sudo: yes on the task doesn't work 2016-12-08 11:33:24 -05:00
ToBeReplaced faee617b21 Fix fail_json call in _mark_package_install 2016-12-08 11:33:23 -05:00
Rene Moser 859b2f7948 composer: smarter arguments handling
To get all available options in json for each command, `composer help <command> --format=json` can be used. This allows us to simply parse the output and dynamically find out if an option is available. Neat!
2016-12-08 11:33:23 -05:00
Rene Moser b9960c0172 composer: rename composer_install to composer_command 2016-12-08 11:33:23 -05:00
Rene Moser 61fcbe0d51 composer: simplify has_changed() 2016-12-08 11:33:23 -05:00
Indrajit Raychaudhuri 42a28d92e2 Additional upgrade mode fixes for pacman module with check_mode safety - ensure upgrade option honors and actually supports `check_mode` - enabling just `upgrade` and `update_cache` should perform upgrade - example added for the equivalent for `pacman -Syu` 2016-12-08 11:33:22 -05:00
Indrajit Raychaudhuri f10de6e47b Add 'package' alias and support for list type for pacman 'name' parameter 2016-12-08 11:33:21 -05:00
Vlad Glagolev fa56777341 fixed a typo in swdepot module 2016-12-08 11:33:20 -05:00
Gerard Lynch d17fa53764 fix param description rst syntax 2016-12-08 11:33:19 -05:00
timeraider4u a7e088c683 added check_mode support
added support for the --check option during execution of the playbooks
2016-12-08 11:33:19 -05:00
Vlad Glagolev c3d49d7db0 fixed a typo in pacman module 2016-12-08 11:33:19 -05:00
ToBeReplaced ad54ce6125 Rewrite dnf module.
This fully implements all expected functionality of the dnf module.

Group removal may behave oddly due to hiccups in tagging groups as being
installed.

A pkg_types option could be added to specify the group package types.
2016-12-08 11:33:19 -05:00
ToBeReplaced cdf603448a Add support for state=latest and * 2016-12-08 11:33:19 -05:00
ToBeReplaced 337a1db62e Add change reporting, enablerepo support, and gpgcheck.
disable_gpg_check was configured backwards, so it was toggled. Typos in
enablerepo/disablerepo are removed. fill_sack() calls are relocated to
occur after repo decisions. The "changed" key is now set for new
installations.
2016-12-08 11:33:19 -05:00
Igor Gnatenko e178abb501 typo fix in oneliners
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2016-12-08 11:33:19 -05:00
Toshio Kuratomi a1235d91a2 Fix nevra, fixes to docs and copyright info 2016-12-08 11:33:19 -05:00
Igor Gnatenko e8f3059300 add ability to install packages
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2016-12-08 11:33:19 -05:00
Igor Gnatenko 7a6af06f8b remove all and start from scratch
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2016-12-08 11:33:19 -05:00
Indrajit Raychaudhuri 739ff5c807 pacman: Remove choice list for boolean values in arg spec This also makes argument_spec more consistent with core modules.
Added self as author.
2016-12-08 11:33:18 -05:00
Brian Coca 5185dd3563 added version added 2016-12-08 11:33:17 -05:00
Brian Coca bf7851d9ad added version_added to new feature 2016-12-08 11:33:17 -05:00
Carl Meyer 66777d010b Add 'production' option to bower module. 2016-12-08 11:33:17 -05:00
Kristian Koehntopp 2d9d474f23 update inline documentation 2016-12-08 11:33:13 -05:00
Kristian Koehntopp 2e80ff1898 add force= option to allow force installation/removal of packages 2016-12-08 11:33:13 -05:00
Andreas Skarmutsos Lindh d2bcd4e8e7 quoted version_added 2016-12-08 11:33:12 -05:00
Andreas Skarmutsos Lindh 0e55b498ad add version_added 2016-12-08 11:33:12 -05:00
Andreas Skarmutsos Lindh 4b0dc387ce cpanm: add installdeps option 2016-12-08 11:33:12 -05:00
sirkubax 83b03752c5 QuickFix of issue 813 2016-12-08 11:33:11 -05:00
Mehmet Ali \"Mali\" Akmanalp 4a6c9dd5b3 Fixes issues where keys missing from bower output
Fixes #495
2016-12-08 11:33:09 -05:00
Brian Coca f9a42f60c5 minor doc uptates 2016-12-08 11:33:07 -05:00
Kim Nørgaard 8a826d61e9 fixed a few issues pointed out by @resmo, pyflakes, pep8 2016-12-08 11:33:07 -05:00
Kim Nørgaard 7cc2cd7881 Add basic slackpkg support 2016-12-08 11:33:06 -05:00
Brian Coca adf7132586 updated version_added 2016-12-08 11:33:06 -05:00
Kevin Brebanov 4d184a3d5b Use the module's get_bin_path function to find 'apk' and reuse the return value in all functions 2016-12-08 11:33:06 -05:00
Kevin Brebanov 4d50f557bd Modify 'name' argument to be of type 'list' in order to support 'with_items' looping 2016-12-08 11:33:06 -05:00
Kevin Brebanov 90a644c18d Update documentation 2016-12-08 11:33:06 -05:00
Kevin Brebanov 95dc4ec5ec Allow multiple packages to be installed at the same time 2016-12-08 11:33:06 -05:00
Kevin Brebanov a5d604e151 Allow multiple packages to removed at the same time 2016-12-08 11:33:06 -05:00
Kevin Brebanov 69389f0cdc Adding apk module 2016-12-08 11:33:06 -05:00
Alexander Gubin 3ccc50fcd5 zypper: Add local/remote rpm installation
Add remote rpm example
2016-12-08 11:33:06 -05:00
Thomas Bechtold 00a5c352ec zypper_repository: Fix repo parsing for empty list
When no repositories are defined in zypper, the return code
of "zypper repos" is 6. Handle that case and don't fail
if zypper_repository has to deal with an empty repo list.

Fixes https://github.com/ansible/ansible-modules-extras/issues/795
2016-12-08 11:33:06 -05:00
Toshio Kuratomi 4a179b9a6e Port layman to fetch_url 2016-12-08 11:33:05 -05:00
Michael Scherer d031cd2998 Move examples to EXAMPLES variable
Partially fix #507
2016-12-08 11:33:03 -05:00
Charlie Root e852df1c0a Add rootdir option to pkgng 2016-12-08 11:33:03 -05:00
Indrajit Raychaudhuri fb268d58d9 Improve pacman module
- detect and use pacman_path via get_bin_path helper
- simplify pending upgrade detection
- apply outstanding changes from #358, #41
2016-12-08 11:33:03 -05:00
Konstantin Shalygin 873c478853 add 'version_add' 2016-12-08 11:33:03 -05:00
Konstantin Shalygin bf7498bc64 add force remove feature 2016-12-08 11:33:03 -05:00
Konstantin Shalygin 1776118aea add upgrade future, patch by n0vember- 2016-12-08 11:33:03 -05:00
Toshio Kuratomi de2f9ed5ff Port maven_artifact to fetch_url 2016-12-08 11:33:02 -05:00
Mathew Davies 40f77fd07c Add more examples 2016-12-08 11:33:00 -05:00
Mathew Davies 36c5ac65f7 Note that the plugin can't be updated once installed 2016-12-08 11:33:00 -05:00
Mathew Davies 752a24caa7 Move ansible util import to the bottom of the module 2016-12-08 11:33:00 -05:00
Mathew Davies 9b6ca2b248 Add default documentation for timeout 2016-12-08 11:33:00 -05:00
Mathew Davies d2d3510d03 Add required property to version documentation 2016-12-08 11:33:00 -05:00
Mathew Davies b4fb90439f Remove debugging line 2016-12-08 11:33:00 -05:00
Mathew Davies 0d6cd1d8ab Document defaults 2016-12-08 11:33:00 -05:00
Mathew Davies 8dc99baabf Add Elasticsearch plugin module 2016-12-08 11:33:00 -05:00
Toshio Kuratomi 16cb0e979d Tabs to spaces
Fixes #666
2016-12-08 11:33:00 -05:00
Toshio Kuratomi a43a93315f Add author github ID 2016-12-08 11:32:56 -05:00
Matt Martz 17b1edfa1c Give dpkg_selections a .py file extension 2016-12-08 11:32:56 -05:00
Toshio Kuratomi a206f3d89f Fix bundler documentation 2016-12-08 11:32:56 -05:00