Commit Graph

671 Commits (b0b4c56bd78184625dfedb9c3350085ee9ec2f25)

Author SHA1 Message Date
Toshio Kuratomi 01dcee98d2 Fix for state=latest with wildcard or virtual provide package names 9 years ago
Brian Coca 22bfb54d9d added comment explaining chdir defaults 9 years ago
Brian Coca a639da7c44 default chdir to tmpdir to avoid virtualenv issues 9 years ago
Brian Coca 8c353d0516 make chdir a path so it resolves shell aliases
also removed this_dir logic as it is not needed, chdir is None by default and run_command can handle that.
9 years ago
Brian Coca f6bbd2ac5b removed syslog in favor of common module logging functions 9 years ago
Greg DeKoenigsberg 0813c5fb40 Change author field for os_redhat_subscription.py 9 years ago
Brian Coca cf2be9607c Merge pull request #533 from thataustin/devel
Updating rubygems --no-document param
9 years ago
Marius Gedminas eb17b6a36c apt: check for "0 upgraded" to be at the beginning of the line
Fixes #1678.
9 years ago
Toshio Kuratomi b29276df34 Merge pull request #1204 from detiber/test_rhsm
bugfixes for redhat_subscription
9 years ago
Toshio Kuratomi 4721d6d8b5 Fix for the case where plugins aren't loaded on old RHEL systems 9 years ago
Toshio Kuratomi c228739f2d Merge pull request #1946 from ansible/pr/1657
Update check-mode results to be a dictionary (finishes pr 1657)
9 years ago
Toshio Kuratomi 9d4694122d Return change results in a dictionary listing the package names.
Fix a parsing problem when package names contain a dot.
9 years ago
Brian Coca 5913f5e5e1 deal with more failures when apt module fails to instantiate pkg
fixes #1499
9 years ago
Brian Coca 8ff80c2c91 updated docs for package 9 years ago
Brian Coca d139825169 fixed typo 9 years ago
Brian Coca afb9b8e2f3 added gpg2 as fallback
fixes #1796
9 years ago
Pierre-Louis Bonicoli 2fdb197245 fix error occurring with Debian
Error was: AttributeError: 'SourcesList' object has no attribute 'repos_urls'
9 years ago
Abhijit Menon-Sen 74a27ffe52 Simplify distribution test
If it's Ubuntu, use UbuntuSourcesList; if it's any other apt-friendly
distribution, use SourcesList; otherwise, fail.
9 years ago
Abhijit Menon-Sen 44d16240a8 Make SourcesList __init__ method also set self.module
This was originally required to allow other methods in SourcesList to
fail, but subsequent changes rendered that unnecessary, and it's just
a cleanup now, and avoids passing in module separately to save().
9 years ago
Abhijit Menon-Sen 6afa1da910 Clarify HAVE_PYTHON_APT/install_python_apt handling in apt_repository
1. Don't test check_mode in both the caller and in the callee.
2. Don't test HAVE_PYTHON_APT inside an if that tests HAVE_PYTHON_APT
3. Don't be irritatingly vague about why the module fails ("You may be
   seeing this because…").

Note that if «apt-get -y install python-apt» succeeds with rc==0, but
for some reason python_apt is not usable afterwards, this will break
because the imports in install_python_apt aren't wrapped inside a
try/except.

In other words, we assume that install_python_apt either succeeds or
fails with a traceback. This commit doesn't affect that behaviour.
9 years ago
Abhijit Menon-Sen 653fd34ed7 Fix call to _expand_ppa 9 years ago
Jason DeTiberus c458b5e96c python 2.4 syntax fix 9 years ago
Jason DeTiberus 0802102634 Add example for changing consumed subscriptions 9 years ago
Jason DeTiberus 520a125693 bugfixes for redhat_subscription
- correctly return pool ids for newer versions of subscription-manager
- allow for managing subscriptions after initial registration.
9 years ago
queridiculo e5e0a70fc1 yum: improved check_mode handling and package update flow. 9 years ago
Yuhui Huang 51666c6def Checking pip uninstall output in both stdout and stderr 9 years ago
Brian Coca 1dafa427c3 added versionadded to new option in pip module 9 years ago
Brian Coca 5c17fd3f9a Merge pull request #629 from wbolster/issue-586-virtualenv-python-version
Add virtualenv_python arg to pip module
9 years ago
Brian Coca 963eb242f1 updated to add missing 'use' option 9 years ago
Toshio Kuratomi d46c036b75 Add notes about loop squashing and 1.9.2 change to install packages in one yum transaction 9 years ago
Brian Coca 93754b903f updated upgrade to a more sensible default as the previous was prone to confusion
fixes #1667
9 years ago
Matt Martz 9eb4219f79 Replaced tabbed indentation with spaces for apt module 10 years ago
Toshio Kuratomi 4ef5a45347 Add version that the profilename param was added 10 years ago
Toshio Kuratomi 6b8e6c0a0a Merge pull request #425 from gerhardsam/devel
rhn_register: add support for profilename
10 years ago
Austin Brown bb816f046c Adding version detection 10 years ago
Brian Coca a0d663bc65 Merge pull request #413 from JimPatterson/412_pip_check_venv
Correct check mode for pip in virtualenv.
10 years ago
Austin Brown 3c72e87152 Merge branch 'devel' of github.com:ansible/ansible-modules-core into devel
Conflicts:
	packaging/language/gem.py
10 years ago
verm666 d435d5ce0a This change is in response to issue #133.
The original problem is: apt_repository.py connect to launchpad on
every playbook run. In this patch apt_repository.py checks if required
repository already exists or not. If no - paa will be added, if yes -
just skip actions.
10 years ago
Toshio Kuratomi 50912c9092 Fix apt_repository so that it does not modify the mode of existing repositories 10 years ago
Toshio Kuratomi 720632f568 Merge pull request #338 from pilou-/apt_repository_filemode
apt_repository: fix file mode
10 years ago
Toshio Kuratomi dba3bc7539 Read the url in in chunks so that we don't use as much memory for large packages 10 years ago
Toshio Kuratomi 4519dd5f4d Small cleanups.
* Import url(lib|parse|lib2) if needed by the module rather than relying
  on module_utils.urls to do so.
* Remove stdlib modules from requirements
* Use the if __name__ conditional for invoking main()
10 years ago
Brian Coca 7a33832606 fixed typo 10 years ago
Brian Coca 665265d285 Merge pull request #60 from az7arul/devel
added `include_doc` option
10 years ago
Toshio Kuratomi 0950593d53 Merge pull request #1516 from ansible/use-yum-api
Yum API is faster than calling out to repoquery.
10 years ago
Toshio Kuratomi 86c30e68a1 Restore setting cachedir when non-root but don't take a useless cachedir parameter to the function
* Revert "Remove unused code"
  This reverts commit bcfba0c050.
* Re-add the changes to remove cachedir as a parameter
10 years ago
Toshio Kuratomi 7c6c518003 Fix bugs found by @kustodian 10 years ago
Greg DeKoenigsberg 2a5f0bde87 Proper author info for all remaining modules 10 years ago
Toshio Kuratomi 08c17814fb Fix incorrect line breaking 10 years ago
Toshio Kuratomi ef7a75938a Further optimizations pointed out by @kustodian in #1516
* Only install yum-utils if needed (b/c we're going to use repoquery)
* Add a warning message explaining that why slower repoquery was used
  rather than yum API.
10 years ago