John R Barker
6c8d40f653
yum is Python 2 only. If Python 3 use dnf ( #37140 )
...
* PY3 = dnf
Red Hat are unlikely to provide a Python 2 version of the yum bindings
as they are moving to `dnf`.
If Ansible can't find the yum Python library give the user a hint about
dnf and Python 3
2018-03-08 08:10:07 +00:00
Toshio Kuratomi
1bc860fafd
Python3 issues in maven_artifact ( #37035 )
...
Fixes #33761
2018-03-05 12:11:27 -08:00
Martin Krizek
a79a5439c8
yum: fix yum version comparison ( #36573 )
2018-02-23 08:55:11 +01:00
Brian Coca
c119d54e4a
now get_url defaults to module temp dir ( #36218 )
...
* now get_url and other modules default to module temp dir
also fixed 'bare' exception
* allow modules to work with older versions
* updated docs per feedback
2018-02-20 08:40:45 -05:00
Jiri Tyr
000387ac23
Fix default value of gpgcheck in doc (PR #36267 )
2018-02-20 13:47:12 +01:00
Sviatoslav Sydorenko
2ce1009c04
Fix portage mod usage of jobs and load-average opt
...
In short, it enables portage module to emit emerge
command with --jobs and --load-average options
with and without argument.
To emit emerge with such CLI argument without
a value, the user must set the corresponding
module option to 0.
By default, if these arguments are missing from
playbook they are omitted.
Misc changes:
* Use to_native to ensure crosspython compat
* Adjust jobs and LA options to accept 0 as reset
* Add docstring to emerge_packages
* Explicitly note in doc that False will work as 0
PR #36355 by @webknjaz
2018-02-20 13:04:10 +01:00
Sviatoslav Sydorenko
3a097063d9
Drop duplicate imports from apt_repository module ( #36320 )
...
* Drop duplicate imports from apt_repository module
* Drop json import from apt_repository module
2018-02-17 16:33:12 +05:30
Anwesha Chatterjee
d2ac7ace01
Add information on the various package states ( #35882 )
2018-02-16 14:22:49 +05:30
Daniel Jaouen
33cbbe0b39
Homebrew Cask: Multiple updates ( #35759 )
2018-02-08 11:00:06 -05:00
Sam Doran
6264a55cdc
Add aliases for parameters to rhsm_repository module ( #35800 )
...
Allow 'enabled' and 'disabled' as synonymns to 'present' and 'absent'.
Minor updates to module docs.
2018-02-08 14:13:47 +01:00
Martin Krizek
e2c0865800
redhat_subscription: do not use defaults from the conf file ( #33763 )
...
* redhat_subscription: do not read defaults from the rhsm.conf file, let subman provide those.
* Only pass options specified by user to the config
2018-02-07 10:18:58 -05:00
Toshio Kuratomi
a5b80464df
Fix packaging/os modules for wildcard imports and get_exception
2018-02-06 08:44:49 -08:00
Abhijeet Kasurde
6bd0fbb63c
Remove deprecated get_exception API
...
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com >
2018-02-05 23:39:56 -05:00
Giovanni Sciortino
b4736a8741
Add rhsm_repository module ( #28292 )
...
Add rhsm_repository module
2018-01-22 12:42:29 -05:00
Xavier Cambar
cea681a5c0
npm module compatible with npm5 ( #26582 )
...
* npm module compatible with npm5
Uses the `--long` flag in `npm list` to get the `missing` key back.
* npm: add integration tests
* npm: test the module with npm 4 as well
* Remove debug tasks, use variables
* Use tests instead of filters
* Adds xcambar as a maintainer of the npm module
2018-01-19 15:47:43 +01:00
tdtrask
676ce74cbf
apk: Fix package dependency bugs ( #34419 )
...
Fixes : #34325 , #35062
2018-01-18 17:20:14 -05:00
John R Barker
195beebcb4
Module DOCUMENTATION should match argspec ( #34895 )
...
* Module DOCUMENTATION should match argspec
Large update of many modules so that DOCUMENTATION option name and
aliases match those defined in the argspec.
Issues identified by https://github.com/ansible/ansible/pull/34809
In addition to many typos and missing aliases, the following notable
changes were made:
* Create `module_docs_fragments/url.py` for `url_argument_spec`
* `dellos*_command` shouldn't have ever had `waitfor` (was incorrectly copied)
* `ce_aaa_server_host.py` `s/raduis_server_type/radius_server_type/g`
* `Junos_lldp` enable should be part of `state`.
2018-01-16 12:18:51 +00:00
Matt Martz
dcc05093db
Validate modules arg spec fixes ( #34477 )
...
* Update validate-modules arg_spec introspection to be faster, by only mocking the imports we explicitly list
* The use of types.MethodType in redhat_subscription wasn't py3 compatible, use partial instead
* Remove argument_spec import hacks, make them errors, we can ignore them with ansible-test
* Enable the --arg-spec flag for validate-modules
2018-01-11 15:41:53 -08:00
Abhijeet Kasurde
f84f386ea7
yum: Add example for enable and disable repo ( #34492 )
...
Fixes : #29897
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com >
2018-01-10 09:51:00 -08:00
Matt Clay
232dc7110c
Fix Python 3.7 syntax error in yum_repository.
2018-01-09 17:54:10 -08:00
Abhijeet Kasurde
b14c8b130f
yum: handle exception in local_envra ( #34400 )
...
This fix adds rpm.error exception which is raised when
API unable to get envra information from RPM package.
Also, adds integration test for local_envra method.
Fixes : #30074
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com >
2018-01-09 12:28:55 +01:00
Abhijeet Kasurde
daae4d922a
Add missing msg keyword for fail_json ( #34387 )
...
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com >
2018-01-03 04:44:53 -05:00
Martin Krizek
3681d0e3e0
yum: support installroot in is_group_env_installed ( #34182 )
2018-01-02 12:42:53 +01:00
Abhijeet Kasurde
d1b63bd5ef
yum: Add option for enable and disable plugin ( #34306 )
...
This fix adds parameter to enable and disable plugins for yum
command.
Fixes : #30016
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com >
2018-01-02 12:37:02 +01:00
Robin Roth
fcd3db27f9
Add comment on auto_import_key for .repo files in zypper_repository ( #33941 )
...
Fixes #32375
2017-12-22 01:05:47 -05:00
Abhijeet Kasurde
bc91258124
apt_get: add warning for force_apt_get ( #33994 )
...
This fix adds strict check for package manager binary checking in given
path.
Fixes : #32940
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com >
2017-12-19 22:39:15 -06:00
Toshio Kuratomi
120af786af
Remove params option from examples
2017-12-19 12:04:14 -08:00
Adam Miller
6cb388a98a
New Module: package_facts ( #33195 )
...
* new package_facts module
Signed-off-by: Adam Miller <maxamillion@fedoraproject.org >
* remove package_facts pkg manager aliases, they are misleading
Signed-off-by: Adam Miller <maxamillion@fedoraproject.org >
* fix package_facts tests now that aliases are dropped
Signed-off-by: Adam Miller <maxamillion@fedoraproject.org >
2017-12-14 13:47:47 -05:00
Pilou
02e965ba20
maven_artifact: fix broken import ( #33749 )
...
* Fail when lxml isn't available
* whole project requires Python >= 2.6
2017-12-13 13:54:05 +00:00
Martin Krizek
7170751703
redhat_subscription: remove python2.4 compat ( #33762 )
...
* Replace get_exception with native error handling.
2017-12-12 07:19:08 +05:30
John R Barker
18529a275b
Bulk pep8 fixes - hand crafted ( #33690 )
...
* Bulk pep8 fixes - hand crafted
Fix by hand the remaining issues that autopep8 couldn't
* Next batch of hand crafted pep8 fixes
* Ignore W503
https://github.com/PyCQA/pycodestyle/pull/499
* Revert more of W503
2017-12-07 19:29:21 -08:00
John Barker
c57a7f05e1
Bulk autopep8 (modules)
...
As agreed in 2017-12-07 Core meeting bulk fix pep8 issues
Generated using:
autopep8 1.3.3 (pycodestyle: 2.3.1)
autopep8 -r --max-line-length 160 --in-place --ignore E305,E402,E722,E741 lib/ansible/modules
Manually fix issues that autopep8 has introduced
2017-12-07 20:25:55 +00:00
John Slay
065a2fe10d
Add requirements to npm module ( #33641 )
...
npm is required in order for this module to work.
2017-12-07 08:03:32 +10:00
Dag Wieers
af59817850
pkg5: PEP8 compliancy and documentation changes ( #33559 )
...
This PR includes:
- PEP8 compliancy changes
- Documentation changes
2017-12-05 07:56:16 -05:00
Dag Wieers
aec8e7784a
urpmi: PEP8 compliancy and documentation changes ( #33560 )
...
This PR includes:
- PEP8 compliancy changes
- Documentation changes
2017-12-05 03:32:58 -05:00
Dag Wieers
ff50b7893c
rpm_key: PEP8 compliancy and documentation changes ( #33426 )
...
This PR includes:
- PEP8 compliancy changes
- Documentation changes
2017-12-04 13:30:27 +01:00
Dag Wieers
fbfeeff6bf
apt_repository: PEP8 compliancy and documentation changes ( #33429 )
...
* apt_repository: PEP8 compliancy and documentation changes
This PR includes:
- PEP8 compliancy changes
- Documentation changes
* Fix merge issue
2017-12-04 13:29:23 +01:00
Dag Wieers
c4ef5bb922
apt_key: PEP8 compliancy and documentation changes ( #33427 )
...
This PR includes:
- PEP8 compliancy changes
- Documentation changes
2017-12-04 13:27:32 +01:00
Dag Wieers
2416a8806d
apt: PEP8 compliancy and documentation changes ( #33425 )
...
This PR includes:
- PEP compliancy changes
- Documentation changes
2017-12-03 17:14:49 +01:00
Dag Wieers
5b5d767c0b
apt_rpm: PEP8 compliancy and documentation changes ( #33431 )
...
This PR includes:
- PEP8 compliancy changes
- Documentation changes
2017-12-01 08:19:35 -05:00
Andy Nguyen
89b65e81d1
fix typo in failure message (packaging/apt) ( #33444 )
2017-12-01 07:42:59 +01:00
Dag Wieers
e0c94aa6a7
yum: PEP8 compliancy and documentation changes ( #33424 )
...
This PR includes:
- PEP8 compliancy changes
- documentation changes
2017-11-30 13:32:05 -05:00
Matt Clay
9735a70059
Fix invalid string escape sequences.
2017-11-21 20:59:08 -08:00
Brian Coca
8e56133b3d
updated docs to reflect list/loop lack of sqashing ( #32522 )
...
* updated docs to reflect list/loop lack of sqashing
* fix dnf
* line len
2017-11-20 10:16:19 -05:00
Martin Krizek
4c58ad1266
pacman: fix closing parenthesis ( #32783 )
2017-11-10 09:52:40 -05:00
Jiri Tyr
1a3037ff63
Making options of type list (fixing #32704 ) ( #32706 )
2017-11-09 10:57:27 -05:00
Martin Krizek
356901b72d
yum: case for multilib when installing from a file ( #32236 )
2017-11-09 06:04:53 -05:00
Martin Krizek
38444bb76c
yum: the rpm command requires newline in --qf ( #32244 )
2017-11-09 05:41:47 -05:00
Toshio Kuratomi
facbf7f14d
Remove the params option from jenkns_plugin and yum_repository ( #32708 )
...
* Remove the params option from jenkns_plugin and yum_repository
It was decided that these options which override Ansible module options
from a generic, unchecked dict are an antipattern for Ansible Modules
and must be removed:
https://meetbot.fedoraproject.org/ansible-meeting/2017-09-28/ansible_dev_meeting.2017-09-28-15.00.log.html
Fixes #30874
2017-11-08 13:59:59 -08:00
tdtrask
760ea4b49e
apk: Override system repositories ( #32689 )
...
Override system repositories when repository option is specified. This fixes inconsistencies when using check mode.
2017-11-08 11:13:56 -05:00