Commit Graph

48 Commits (90c9bf8968c22eabc0b0d769b0bea0adf99ee4d7)

Author SHA1 Message Date
Michael DeHaan 82564df61a Merge pull request #8544 from Tenzer/faster-apt_repository
apt_repository: Check if key already exists before adding it
10 years ago
Jeppe Toustrup b811df38a7 apt_repository: Check if key already exists before trying to add it for a speed increase 10 years ago
Michael DeHaan 27de1fbbf3 Update version_added info. 10 years ago
Karol Hosiawa 60ff1c572e Add validate_certs option to apt_repository 10 years ago
Aladin Jaermann 015a22ffba Correct typo 11 years ago
James Cammarata d44ed533b3 Default use_proxy to True for fetch_url()
Also added some error handling to the fetch_url() call in the
apt_repository module, so that failures to look up the PPA info
are properly handled.

Fixes #7322
11 years ago
James Cammarata 537494c2d6 Make sure distro variable is set if python-apt is installed
Fixes #7295
11 years ago
James Tanner 6ec0e25d1a Addresses #6908 Add a mode parameter to apt_repository 11 years ago
James Tanner 28cb4756c4 Remove debug line 11 years ago
James Tanner db36c41c3b Addresses #6908 Strip usernames and passwords from apt_repository filenames 11 years ago
Michael DeHaan a4bce09ad1 Clarify docs message. 11 years ago
James Tanner f6a02d9b2c Merge pull request #6220 from trevorah/ansible.git
apt_repository: autoinstall python-apt if not available
11 years ago
Matt Martz 7af8a33def remove dependency on pycurl from apt_repository by using module_utils/urls.py instead 11 years ago
Michael DeHaan 9cc5ae6f2f Merge pull request #6120 from lalinsky/apt_repository_pycurl_non_ppa
Don't require pycurl in apt_repository when it's not actually needed
11 years ago
James Laska 5cfefb326a Correct check_mode conditional logic
The desired behavior is to _not_ add the ppa signing key when check_mode is
enabled.  This fix corrects the conditional logic to comply with the stated
behavior.
11 years ago
Michael DeHaan 6010e74839 Various commits to enable no-shell or safe-shell usage, more to come. 11 years ago
Andy Trevorah e4ad97b918 reworked apt-repository auto-install to be like yum 11 years ago
Andy Trevorah 1280269866 apt_repository: autoinstall python-apt if not available 11 years ago
James Cammarata be0be16e89 Merge branch '5853-python-2.5-apt_repository-fix' of https://github.com/timurbatyrshin/ansible into timurbatyrshin-5853-python-2.5-apt_repository-fix 11 years ago
Lukáš Lalinský 8d507f79b9 Don't require pycurl in apt_repository when it's not actually needed 11 years ago
Brian Coca 310b23ee8d removed with
Signed-off-by: Brian Coca <briancoca+dev@gmail.com>
11 years ago
Timur Batyrshin 658c15930e reword "except Error as e:" into "except Error, e:" to be compatible with Python 2.5 (#5852) 11 years ago
Timur Batyrshin db173453ba further compatibility with older versions of python-apt (#5853) 11 years ago
Rutger Spiertz 763c0305c1 apt_repository: don't crash if default_file doesn't exist 11 years ago
James Tanner ad837709bd Addresses #5023 Fix import comments 11 years ago
James Tanner 6000d636b3 Fixes #5023 Convert all modules to use new snippet import pattern 11 years ago
jctanner 6cebfccd7f Merge pull request #4440 from AndydeCleyre/patch-2
Set default of 'yes' for update_cache, as is in the documentation
11 years ago
Jimmy Tang 0568abeb14 check for ubuntu distribution first 11 years ago
Michael Scherer 19bb44288e fix distribution detection in apt_repository module, so it also work
on Mint as it work on Debian, fix #4587.

PPAs are not supported however, since that's a Ubuntu specific feature
and mint is detected as a generic distribution and use a different
codename than the Ubuntu release it is based on, which mean that apt_repository
cannot add detect and add the proper url without a better heuristic.
11 years ago
Jimmy Tang a4c8d3ee68 This oneliner change allows apt-key to inherit the http_proxy variable.
Before this fix

  TASK: [apt_repository repo='ppa:vbernat/haproxy-1.5'] *************************
  failed: [134.226.115.202] => {"cmd": ["apt-key", "adv", "--recv-keys", "--keyserver", "keyserver.ubuntu.com", "CFFB779AADC995E4F350A060505D97A41C61B9CD"], "failed": true, "rc": 2}
  stderr: gpg: requesting key 1C61B9CD from hkp server keyserver.ubuntu.com
  gpg: no valid OpenPGP data found.
  gpg: Total number processed: 0

After the fix

  TASK: [apt_repository repo='ppa:vbernat/haproxy-1.5'] *************************
  changed: [134.226.115.202]
11 years ago
Andy Kluger 5ce29734d2 Set default of 'yes' for update_cache, as is in the documentation 11 years ago
Alexander Saltanov 2bd6c5e262 Remove options and protocols in source line with regex.
Fixes #4311
11 years ago
René Moser ccf4cf1dd8 Fixed missing required package in notes. 11 years ago
René Moser 9fccf96d61 apt_repository: added option update_cache.
The default behavior is to update_cache if changed.

If you add more then one repo, you may not want to update cache for every repo separately.
So you can now disable update_cache with this new option e.g. update_cache=no

Updating cache can also be handled using the apt module.
11 years ago
René Moser a991b62a51 apt_repository: fix update cache after state=changed. Closes GH-4136 11 years ago
sjahl 4dd68c07a0 setting 0644 permissions on mkstemp file handles. Fixes issue #3857 11 years ago
James Cammarata 10a0f03cdc Cleaning up of apt_repository module and removing wget parts 11 years ago
Michael Vogt de404eac06 use either pycurl or wget to download from launchpad, also improve error message if neither is installed 11 years ago
Michael Vogt 5e56d42ed1 use pycurl instead of urllib2 when talking to launchpad to actually get SSL cert verification, see https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/915210 or CVE-2011-4407 for a previous similar issue in software-properties 11 years ago
James Cammarata 0958673574 Reverting version_added field in the apt_repository module 11 years ago
Alexander Saltanov ded947008a Replacement for apt_repository.
1. Debian Squeeze is supported out of box now.
2. Repository type "deb" or "deb-src" should be explicitly specified.
3. If a source had beed added it must be possible to remove it.
4. PPA can be only used against Ubuntu hosts.
11 years ago
Abhijit Menon-Sen 1a90d01ba9 Fix some typos discovered during casual reading 11 years ago
Evan Wies 01fc2b61dc apt_repository: enhance documentation 12 years ago
Jan-Piet Mens 5c69918d53 DOCS: standardize on EXAMPLES (a.k.a. Docs-JumboPatch JetLag Edition)
Migrated all examples: in DOCUMENTATION=''' string to standalone EXAMPLES=''' string
  Added deprecation warning to moduledev.rst and remove deprecated example from it
  Fixed up a few typos and uppercased some acronyms.
  add consistency to how EXAMPLES are formatted
12 years ago
Michael DeHaan 3a635d2d26 Lots of formatting fixes 12 years ago
William Bowling 222f004bfa Fixes apt_repository always reporting file uri repos as changed 12 years ago
Serge van Ginderachter 13a9613bc6 fix a bug in apt-repository where 'ppa' is used in a plain http://ppa. .... url 12 years ago
Michael DeHaan 391fb98ee2 Allow modules to be categorized, and also sort them when generating the documentation. 12 years ago