Matt Clay
49692e98eb
Fix python 3 issues with apt* modules. ( #4848 )
...
- Use range instead of xrange.
- Use python3-apt package for python 3.
- Eliminate unsupported for/else/raise usage.
- Use list on dict.items when modifying dict.
- Update requirements documentation.
Also made non-intrustive style fixes (adding blank lines).
2016-12-08 11:25:05 -05:00
Matt Clay
e8f70f25df
Python 3 fixes for apt_* modules. ( #4754 )
2016-12-08 11:25:03 -05:00
Alexey Sheplyakov
8d4fe2a767
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
2016-12-08 11:24:50 -05:00
mattymo
5692d28f93
Add retries to apt_key with keyserver, fixes #3986 ( #3987 )
...
Public SKS gpg servers frequently are unavailable, but a retry
can mitigate frequent failures.
2016-12-08 11:24:39 -05:00
callipeo
4331fcae34
Add support for both keyserver and keyring in apt_key
...
Fixes Issue #2996
2016-12-08 11:24:09 -05:00
Evgeny Vereshchagin
8f23e54a80
apt-key: convert ids to the 'short' format
...
Fixes:
$ ansible all -m apt_key -a 'state=present id=7A82B743B9B8E46F12C733FA4759FA960E27C0A6 keyserver=hkp://keyserver.ubuntu.com:80' --sudo
127.0.0.1 | SUCCESS => {
"changed": true
}
$ ansible all -m apt_key -a 'state=absent id=7A82B743B9B8E46F12C733FA4759FA960E27C0A6' --sudo
127.0.0.1 | SUCCESS => {
"changed": false
}
$ apt-key export 7A82B743B9B8E46F12C733FA4759FA960E27C0A6
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1
...
See https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1481871
2016-12-08 11:24:00 -05:00
Greg DeKoenigsberg
eb881d7d5d
Proper author info for all remaining modules
2016-12-08 11:23:07 -05:00
Dominic Hargreaves
535f0e9b11
apt_key documentation: add a note explaining the benefit of including 'id'
2016-12-08 11:22:58 -05:00
Michael DeHaan
5d814d9fb2
Some more module categorization.
2016-12-08 11:22:25 -05:00