community.general/lib/ansible/modules/extras
Robin Roth 5464b71561 Zypper repository rewrite (#1990)
* Remove support for ancient zypper versions

Even SLES11 has zypper 1.x.

* zypper_repository: don't silently ignore repo changes

So far when a repo URL changes this got silently ignored (leading to
incorrect package installations) due to this code:

    elif 'already exists. Please use another alias' in stderr:
        changed = False

Removing this reveals that we correctly detect that a repo definition
has changes (via repo_subset) but don't indicate this as change but as a
nonexistent repo. This makes us currenlty bail out silently in the above
statement.

To fix this distinguish between non existent and modified repos and
remove the repo first in case of modifications (since there is no force
option in zypper to overwrite it and 'zypper mr' uses different
arguments).

To do this we have to identify a repo by name, alias or url.

* Don't fail on empty values

This unbreaks deleting repositories

* refactor zypper_repository module

* add properties enabled and priority
* allow changing of one property and correctly report changed
* allow overwrite of multiple repositories by alias and URL
* cleanup of unused code and more structuring

* respect enabled option

* make zypper_repository conform to python2.4

* allow repo deletion only by alias

* check for non-existant url field and use alias instead

* remove empty notes and aliases

* add version_added for priority and overwrite_multiple

* add version requirement on zypper and distribution

* zypper 1.0 is enough and exists

* make suse versions note, not requirement

based on comment by @alxgu
2016-12-08 11:34:07 -05:00
..
.github Update the issue and pull-request templates in sync with ansible/ansible 2016-12-08 11:33:59 -05:00
cloud Add Maintenance Mode support for VMware (#1754) 2016-12-08 11:34:06 -05:00
clustering Modify consul certificate validation bypass keyword from 'verify' to 'validate_certs' 2016-12-08 11:34:00 -05:00
commands Catch errors related to insufficient (old) versions of pexpect. Fixes #13660 2016-12-08 11:33:53 -05:00
database mongodb_user.py: changes on comments 2016-12-08 11:34:01 -05:00
files Reindent with_items, fix #1849 2016-12-08 11:33:58 -05:00
messaging Do not use a default value for -n parameter, fix #1400 (#1417) 2016-12-08 11:34:06 -05:00
monitoring Mark the token as sensitive, since it shouldn't be printed (#2043) 2016-12-08 11:34:07 -05:00
network Fixes issue #1992 -- fixes issue adding and deleting pools (#1994) 2016-12-08 11:34:04 -05:00
notification Set api_key as no_log, since that's likely something that should be kept private (#2038) 2016-12-08 11:34:06 -05:00
packaging Zypper repository rewrite (#1990) 2016-12-08 11:34:07 -05:00
source_control New module for creating gitlab projects (#968) 2016-12-08 11:34:05 -05:00
system Basic ability to set masquerade options from ansible, according to current code design/layout (mostly) (#2017) 2016-12-08 11:34:06 -05:00
web_infrastructure Trick ansible-modules-validate to pass this with no RETURN. 2016-12-08 11:33:44 -05:00
windows The enable parameter is a boolean, then convert to a boolean. (#1607) 2016-12-08 11:34:05 -05:00
.travis.yml Rebase PRs against $TRAVIS_BRANCH before performing tests 2016-12-08 11:34:02 -05:00
CONTRIBUTING.md now point to local template 2016-12-08 11:33:50 -05:00
COPYING Copying snapshot of extras modules 2016-12-08 11:32:07 -05:00
README.md added installation info .. that you don't need to 2016-12-08 11:32:28 -05:00
REVIEWERS.md Add new SMEs for Zabbix 2016-12-08 11:33:33 -05:00
VERSION Version bump for new beta 2.0.0-0.5.beta3 2016-12-08 11:33:34 -05:00
__init__.py package files 2016-12-08 11:32:18 -05:00
test-docs.sh Add testing documentation to travis 2016-12-08 11:32:55 -05:00

README.md

ansible-modules-core

This repo is transitional and not yet enabled. Do not send issues or pull requests here yet.

The goal is to split library/ from ansible into git submodules.

Reporting bugs

Take care to submit tickets to the appropriate repo where modules are contained. The repo is mentioned at the bottom of modlue documentation page at docs.ansible.com.

Testing modules

Ansible module development guide contains the latest info about that.

License

As with Ansible, modules distributed with Ansible are GPLv3 licensed. User generated modules not part of this project can be of any license.

Installation

There should be no need to install this repo separately as it should be included in any Ansible install using the official documented methods.