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
Martin Krizek
a8ab1a0b20
yum: use the C locale when screen scraping ( #32203 )
2017-11-05 09:28:05 -05:00
Pilou
7fe69daa4d
Modules metadata: fix invalid GitHub ID in author field ( #31856 )
...
* Replace Twitter username with GitHub ID
See 8bfa19c4af
* Replace Twitter username with GitHub ID
See 22766906b0
* Fix GitHub ID: add missing letters
See:
- nxos_banner.py: 9c6ee8d0bb
- nxos_logging.py: e37e736ddb
- net_user.py: f6a4803669
* Remove nonexistent author, use GitHub organization
See https://github.com/ansible/ansible-modules-core/pull/2880
Not sure how Ansibullbot will handle an organization ID, but
other deprecated modules already use it.
* Replace Twitter username with GitHub ID
* Replace Twitter username with GitHub ID
See bf59d1cc1e
* Replace Twitter username with GitHub ID
See d02a9016a2
* Author: use GitHub ID
See 0847bfecd672f6b2e0e4429e998df7c6e7042b1c
* Replace Twitter username with GitHub ID
See a59684fddd
* Replace Twitter username with GitHub ID
See 94f9bb962f
* Replace Twitter username with GitHub ID
See 40b7dffea8
2017-11-02 06:52:18 -04:00
akatch
ea2afc6ebc
Fixes #32092 ( #32412 )
...
* Fixes #32092
* Linter fix
2017-11-02 08:54:11 +10:00
Brian Coca
43714a0091
corrected package docs
2017-10-31 15:31:42 -04:00
Martin Krizek
ee6ba5d590
yum: allow for downgrade using rpm file ( #31647 )
2017-10-24 14:33:38 +02:00
René Moser
e7d7a29a46
composer: return skipped if command has no --dry-run ( #32010 )
2017-10-22 10:04:46 +02:00
James Molet
42deaf2c71
updating argument validation for activation keys to match subscription-manager command line, fixes #27283 ( #30236 )
2017-10-13 08:59:49 -04:00
Lujeni
91ab88dac7
pip: Use chdir directive in the venv path ( fixes #25122 ) ( #26865 )
2017-10-13 12:39:47 +02:00
Martin Krizek
24c360287e
yum: fix crashes installing from file/url
2017-10-10 11:39:47 -07:00
Brian Coca
9a8055a8e5
add note on how to avoid service start in apt
2017-10-10 09:24:09 -04:00
Lukas Bednar
5ccc1072ea
[rpm_key] Fix to import first key on the system ( #31514 )
...
* [rpm_key] Fix to import first key on the system
Fixes : #31483
* [rpm_key] removed unsafe_shell and "throwaway" underscore
* [rpm_key] adding test to add the first key on system
2017-10-10 13:31:20 +02:00
Pilou
1c9bffe248
pip module: fix TypeError ( #31395 )
...
* pip: add test: an error occurs when pip not found
* pip: fix TypeError exception when pip executable isn't found
2017-10-09 10:01:21 -07:00
Brian Coca
adcd185273
version is string and should be 2.9
2017-10-09 12:15:56 -04:00
Sebastien Boyron
6b34dc788a
[feat] module apt: add warning on deprecated states
2017-10-09 12:14:36 -04:00
Matthew Martin
63e59a9825
maven_artifact: Add classifier to default dest ( #24518 )
2017-10-09 07:56:33 -06:00
Martin Krizek
13631ececa
yum: check if env groups are installed ( #31182 )
2017-10-09 06:01:34 -04:00
Eduardo Suarez-Santana
4337b7a777
Fix rpm_key absent. ( #31045 )
...
When keyid is 8 charactes long, drop_key function cuts everything
issuing an error: "package gpg-pubkey- is not installed"
2017-10-05 14:45:14 +02:00
Martin Krizek
115b4fdc9b
yum: fix name parsing out of envra ( #31247 )
2017-10-04 20:48:00 +02:00
Stephen
9c6ad3d076
Add update_only parameter for yum module ( #22206 )
...
* Add update_only parameter for yum module
When using latest, `update_only: yes` will ensure that only existing
packages are updated and no additional packages are installed.
* Update yum.py
Update version added for `update_only` parameter to 2.5
* add unit tests for update_only flag in yum module
2017-10-04 10:25:13 +02:00
Dag Wieers
17fbeeb2f0
rhn_channel: PEP8 compliancy and doc fixes ( #30912 )
...
This PR includes:
- PEP8 compliancy fixes
- Documentation fixes
2017-10-03 09:50:44 +02:00
Sebastien Boyron
af3e8950d6
[fix] issue #30516 : take care about autoremove in upgrade function
2017-10-02 16:19:55 -04:00
Dag Wieers
1241d0a3f4
pip: PEP8 compliancy and doc fixes
...
This PR includes:
- PEP8 compliancy fixes
- Documentation fixes
2017-10-02 16:18:56 -04:00
Dag Wieers
4832b9a2d2
yum: doc fixes ( #30897 )
...
This PR includes:
- Documentation fixes
2017-09-28 12:57:21 +10:00
Dag Wieers
fd91da7297
pacman: PEP8 compliancy and doc fixes ( #30913 )
...
This PR includes:
- PEP8 compliancy fixes
- Documentation fixes
2017-09-27 03:13:18 -04:00
Martin Krizek
55739c1e46
redhat_subscription: replace deprecated autosubscribe ( #30927 )
2017-09-27 02:33:00 -04:00
Hervé Beraud
cddff32792
[fix] pylint errors on modules packaging language ( #30748 )
...
* cleaning pylint errors for module packaging/language/*
2017-09-22 10:11:11 -07:00
Martin Krizek
8b416abb49
Allow for creating yum repo based on metalink only ( #30736 )
2017-09-22 13:44:26 +02:00
Martin Krizek
cca4f94736
Mention all yum list options in docs ( #30706 )
2017-09-21 19:11:53 +02:00
Jiri Tyr
962528f511
Make clear the file must not contain .repo ( fixes #30644 ) ( #30656 )
2017-09-21 19:11:07 +02:00
Hervé Beraud
b8e21bca46
[fix] sanity check errors on pylint
2017-09-20 17:38:55 -07:00
Matt Clay
7714dcd04e
Enable more pylint rules and fix reported issues. ( #30539 )
...
* Enable pylint unreachable test.
* Enable pylint suppressed-message test.
* Enable pylint redundant-unittest-assert test.
* Enable pylint bad-open-mode test.
* Enable pylint signature-differs test.
* Enable pylint unnecessary-pass test.
* Enable pylint unnecessary-lambda test.
* Enable pylint raising-bad-type test.
* Enable pylint logging-not-lazy test.
* Enable pylint logging-format-interpolation test.
* Enable pylint useless-else-on-loop test.
2017-09-18 23:20:32 -07:00
Moshe Shitrit
7da69a23e6
Added nopackages option and Fix #24997 ( #28831 )
...
* Added nopackages option and Fix #24997
Adding a new option - nopackages.
This enables the option to add the --nopackages flag while registering a new node to RHN Satellite. We are not uploading the rpm data on our nodes and since we started utilizing ansible for nodes registration, I figures it would be useful for others as well.
Also-
Fixes #24997 (verified in my lab)
* Fixed documentation
* Documentation changes:
- typo fix in "default"
- Added "version_added" and set to 2.4
* Documentation changes:
- Removed trailing whitespaces in nopackages['version_added']
* This change is unrelated for this feature pull request and shouldn't be here (and also seems wrong, see #25079 ).
* Changed "version_added" to 2.5 in the module docs
2017-09-15 10:50:47 -04:00
Martin Krizek
59702318e1
yum: fallback to epoch=0 if not available
2017-09-12 13:30:35 -07:00
Nicklaus McClendon
6dbc3c63f8
Updated pip module to always return changed if venv is created ( #24233 )
...
* Updated pip module to always return changed if venv is created
Fixes #23204
* Add integration test to pip (see #23204 )
2017-09-12 10:01:29 -07:00
Martin Krizek
d52316fcc2
yum cleanup ( #28818 )
2017-09-12 06:59:15 -04:00
Abhijeet Kasurde
b5eca624d0
Refactor easy_install module
...
* PEP8 fix
* Rectified string check in package install command stdout
* Add abadger's code review changes
Fixes #22245
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2017-09-11 15:45:41 -07:00
Martin Krizek
de299ef77c
dnf: fix TypeError when env/group failed
2017-09-11 09:16:39 -07:00
Martin Krizek
f31696f77f
yum: do not use get_exception() ( #28826 )
...
Python 2.4 support was dropped in Ansible 2.4.
2017-08-31 13:47:16 -04:00
Dag Wieers
effa5085ca
Remove trailing whitespace
2017-08-31 12:34:59 +02:00
Dag Wieers
1c140cd90d
More changes.
2017-08-31 12:34:59 +02:00
Andreas Olsson
f2c0969d27
Clarify the apt_key module's absent state behavior
...
Currently the apt_key module only supports removing keys based on
explicitly stated key ids. The documentation should reflect that.
Related to #26005
2017-08-31 12:34:59 +02:00
ppanczyk
c9b74a3af3
Fixed 'only_upgrade' so that the status was not always 'changed' ( #25213 )
2017-08-30 14:46:52 -04:00
Laurent Ribot
b8da5ee5ef
Module maven_artifact : manage file dest attributes ( #24965 )
2017-08-30 10:00:06 -04:00
Martin Krizek
e4ea999e6d
yum: use envra instead of nevra ( #28284 )
2017-08-29 13:26:42 -04:00
René Moser
c97f4653be
fix typos in various modules and docsite ( #28747 )
2017-08-29 17:59:41 +02:00
Martin Krizek
98b19f0623
yum: fix changed in group remove
2017-08-29 11:48:29 -04:00
pari-
468e71bf71
npm: fix idempotence ( #22238 )
...
* npm: fix idempotence
* Better idempotency fix
More intelligently add --production rather than depending on hard coded order in args list
Cleanup boilderplate imports and license
PEP8 fixes
2017-08-28 17:26:01 -04:00
Dag Wieers
a1876bac9c
pkg5_publisher: Fix on failed, PEP8 compliancy ( #26019 )
2017-08-27 00:30:05 +02:00
Laurent Ribot
f92ae0831b
Fix : get proper snapshotVersion when no classifier ( #27102 ) ( #27103 )
2017-08-23 10:42:48 -04:00
René Moser
fbcf6e23af
yum: fix state=latest ( #28547 )
2017-08-23 10:22:16 +02:00
Martin Krizek
711ae03845
yum: fix reporting group changes in check_mode ( #28331 )
2017-08-22 16:35:23 -04:00
Martin Krizek
c59f3f841e
yum: remove duplicite code introduced in d1fa210be
( #28511 )
2017-08-22 22:03:50 +02:00
Dag Wieers
78dfbed2a5
openbsd_pkg: Fix when failed, PEP8-compliant ( #26018 )
...
This PR includes:
- PEP8 compliancy
- A fix to ensure the module fails when it failed for a package
- Various cosmetic changes to documentation
- Make `state: present` the default (and not required)
2017-08-17 18:20:02 -04:00
Sam Doran
9fe898add6
Make options match others in the file
2017-08-17 17:44:27 -04:00
Kurt Bomya
05fd51f77d
Added "choices" true/false for user_install
2017-08-17 17:44:27 -04:00
Benjamin
c9e5842c47
Fix maven_artifact documentation ( #28295 )
...
Display the string 'no' as default for the keep_name attribute.
2017-08-17 11:47:09 +10:00
Martin Krizek
bcb9644f39
yum: cover "Nothing to do" not only for groups ( #28283 )
2017-08-16 17:24:51 +02:00
Toshio Kuratomi
f203ca7907
Update metadata to 1.1
2017-08-15 23:12:08 -07:00
Jiri Tyr
1b8fe94e5a
Support list for baseurl and gpgkey params in yum_repository ( fixes #24948 ) ( #24967 )
...
* Support list for baseurl and gpgkey params in yum_repository
* Adding tests
2017-08-15 11:51:33 -04:00
René Moser
d1fa210bed
yum: using install to update specified packages ( #26266 )
...
* yum: using install for update packages
* yum: fix return changed when latest version installed
* yum: fix changed when nothing to do
2017-08-15 16:20:10 +02:00
Toshio Kuratomi
47b534d809
Move more modules out of curated
...
pip to core because users frequently use pip to install packages to run
ansible modules.
win_chocolatey to community as it still needs some work before we'd be
ready to include it in core support.
2017-08-14 10:58:15 -07:00
Arne Demmers
000df2709d
Support downgrade to specific version in yum module.
2017-08-14 04:55:39 -07:00
Pierre-Louis Bonicoli
dbc422ea1c
Fix 'module' object is not callable
2017-08-12 10:21:14 -07:00
Pierre-Louis Bonicoli
f9404b0d85
Fix exit_json usage: really call client.auth.logout
2017-08-12 10:21:14 -07:00
Pierre-Louis Bonicoli
b556def4d3
Update DOCUMENTATION metadata
2017-08-12 10:21:14 -07:00
Pierre-Louis Bonicoli
ac05645bce
Remove commented statements
2017-08-12 10:21:14 -07:00
Pierre-Louis Bonicoli
f761fc1d1f
rhn_channel: fix py3 compatibility (use six)
...
and remove unused import
2017-08-12 10:21:14 -07:00