Commit Graph

31 Commits (790a38e25db538ae2c771b0ef37f5121e4d49ee1)

Author SHA1 Message Date
James Laska 2638cc9a49 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 cb9059b250 Various commits to enable no-shell or safe-shell usage, more to come. 11 years ago
James Cammarata 4ab996621d 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
Brian Coca 7873591ea0 removed with
Signed-off-by: Brian Coca <briancoca+dev@gmail.com>
11 years ago
Timur Batyrshin 9ad52632c5 reword "except Error as e:" into "except Error, e:" to be compatible with Python 2.5 (#5852) 11 years ago
Timur Batyrshin 2ec777137e further compatibility with older versions of python-apt (#5853) 11 years ago
Rutger Spiertz a471f6c993 apt_repository: don't crash if default_file doesn't exist 11 years ago
James Tanner 4f9aadcc07 Addresses #5023 Fix import comments 11 years ago
James Tanner 38edad70ac Fixes #5023 Convert all modules to use new snippet import pattern 11 years ago
jctanner 8f3a1d4c09 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 858b3da2ae check for ubuntu distribution first 11 years ago
Michael Scherer ee62de7887 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 878fd17bc6 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 819bd3d8f7 Set default of 'yes' for update_cache, as is in the documentation 11 years ago
Alexander Saltanov 729a6f1533 Remove options and protocols in source line with regex.
Fixes #4311
11 years ago
René Moser 2e649d21af Fixed missing required package in notes. 11 years ago
René Moser cb9308a998 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 53d06b932a apt_repository: fix update cache after state=changed. Closes GH-4136 11 years ago
sjahl 39b0122d37 setting 0644 permissions on mkstemp file handles. Fixes issue #3857 11 years ago
James Cammarata a32f1cac8d Cleaning up of apt_repository module and removing wget parts 11 years ago
Michael Vogt d036723661 use either pycurl or wget to download from launchpad, also improve error message if neither is installed 11 years ago
Michael Vogt b69e7c92e7 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 ae962bf645 Reverting version_added field in the apt_repository module 11 years ago
Alexander Saltanov aed1f4156e 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 a37e232cb1 Fix some typos discovered during casual reading 11 years ago
Evan Wies 5fcf10a3ca apt_repository: enhance documentation 12 years ago
Jan-Piet Mens 3404a0fc16 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 4105813ebe Lots of formatting fixes 12 years ago
William Bowling 5537358532 Fixes apt_repository always reporting file uri repos as changed 12 years ago
Serge van Ginderachter e143f86867 fix a bug in apt-repository where 'ppa' is used in a plain http://ppa. .... url 12 years ago
Michael DeHaan cd97a4cb14 Allow modules to be categorized, and also sort them when generating the documentation. 12 years ago