Commit Graph

71 Commits (f42e3bf010a12565a2b44b55cc6fec775afa353b)

Author SHA1 Message Date
Michael DeHaan 727cee509c Merge branch 'PR_add_chdir_to_pip' of git://github.com/y-p/ansible into devel
Conflicts:
	library/packaging/pip
11 years ago
Michael DeHaan 50fa88f28a Merge branch 'fix-apt-purge' of git://github.com/madduck/ansible into purge 11 years ago
Michael DeHaan d9c0a5c37d Revert "now modules can implement with_items list globbing w/o updating"
This reverts commit 4942a06bc2.

Conflicts:

	lib/ansible/runner/__init__.py
11 years ago
martin f. krafft ae42144752 Always assume purged for older python-apt
Older python-apt modules don't export Package.installed_files and there
seems to be no other way to figure out if a package is
removed-but-not-purged, so we just always assume it's purged.

Signed-off-by: martin f. krafft <madduck@madduck.net>
11 years ago
martin f. krafft 420f7d7ac6 Introduce non-purged package status
A package may be removed but not purged with APT. The only way to
identify this state is by looking at the list of installed files of
a package. Even if the package has no files installed, this list will be
non-empty until the package is removed:

  # python -c "import apt; c=apt.Cache(); c.update(); c.open(); p=c['ruby1.8']; print p, p.installed, p.installed_files"
  <Package: name:'ruby1.8' id:1425> None [u'']

  # dpkg --purge ruby1.8
  (Reading database ... 27904 files and directories currently installed.)
  Removing ruby1.8 ...
  Purging configuration files for ruby1.8 ...

  # python -c "import apt; c=apt.Cache(); c.update(); c.open(); p=c['ruby1.8']; print p, p.installed, p.installed_files"
  <Package: name:'ruby1.8' id:1425> None []

See http://bugs.debian.org/712749 too.

If a package is not marked installed but it still 'has_files', then it
should be processed if the request is to purge it.

Signed-off-by: martin f. krafft <madduck@madduck.net>
11 years ago
martin f. krafft 8e37a2bec9 Fix purging of packages
A small error in the reuse of a variable caused packages to never get
purged. This commit fixes that.

Signed-off-by: martin f. krafft <madduck@madduck.net>
11 years ago
Michael DeHaan 31b63b033b Merge conflict 11 years ago
Michael DeHaan 96134d003e Merge remote branch 'origin/devel' into devel 11 years ago
Jesse Keating 86bc2ec08a pkg option of apt is not required
You can use apt module with update_cache and without specifying a
package. Update the docs to reflect this.
11 years ago
Michael DeHaan b4358d1300 Merge branch 'apt_key_file' of git://github.com/veeti/ansible into devel
Conflicts:
	library/packaging/apt_key
11 years ago
Veeti Paananen 77159d21da Add apt_key examples for file and data 11 years ago
Jan-Piet Mens 30d641094b Docs: consistently format playbook EXAMPLES 11 years ago
Michael DeHaan e128e8b563 Merge pull request #3162 from strawlab/apt-key-binary-fix
allow apt-key module to work with binary key
11 years ago
Michael DeHaan 58e8a97e91 Merge pull request #3225 from eest/openbsd_pkg-check_mode
openbsd_pkg: Add check_mode support.
11 years ago
Michael DeHaan 613df1d649 Merge pull request #3213 from veeti/apt_key_data
Document the data argument for apt_key
11 years ago
Michael DeHaan d9f91be34a Merge pull request #3227 from bcoca/modules_wantlist
implementing with_items list globbing made easier for modules
11 years ago
Michael DeHaan f87299842c Merge pull request #3199 from chrishoffman/doc_error
Fixing documentation error
11 years ago
Michael DeHaan 4849539399 Merge pull request #3194 from E-M/patch-2
Fixed Issue #3193 - make rhn_register module compatible with EL 5
11 years ago
Brian Coca 4942a06bc2 now modules can implement with_items list globbing w/o updating
hardcoded lists in ansible code, just add WITH_ITEMS_USES_LIST in a
comment anywhere, and of course, support recieving params as list.

Signed-off-by: Brian Coca <briancoca+dev@gmail.com>
11 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
11 years ago
Patrik Lundin 9dfc420927 openbsd_pkg: Add check_mode support.
The biggest change has been to package_latest since it was previously
just comparing version numbers before and after an upgrade had run.
We now parse the output from a dry run instead.

Thanks to Johan Belin for triggering the discussion :).
11 years ago
Veeti Paananen 1284bfd742 Add a file argument to apt_key 11 years ago
Veeti Paananen dcb06a2306 Document the data argument for apt_key 11 years ago
Chris Hoffman 8a55210fb6 Removing all the default: null from the documentation 11 years ago
Chris Hoffman 499c7309e3 Fixing documentation error 11 years ago
Edgars M. 46ad4299a8 Fixed Issue #3193 11 years ago
E-M 170a5f36f1 Fixed module name in examples section
Examples showed that modules name is rhnreq_ks, when it actually is rhn_register.
11 years ago
Andrew Straw 94e66ef558 allow apt-key module to work with binary key 11 years ago
Michael DeHaan 41bded178d Rename module 11 years ago
Michael DeHaan 305694a847 Update "added in" version in zypper, update doc name of rhn_register module. 11 years ago
Michael DeHaan cbee66c88b Rename module 11 years ago
Michael DeHaan c26d39c9d4 Rename rhnreg_ks to rhn_register 11 years ago
Michael DeHaan d0ded631d6 Merge pull request #3148 from jlaska/rhnreg_ks
Add rhnreg_ks module
11 years ago
Patrick Callahan c1ec8ead6c BUG FIX: Add package name to the cmd. 11 years ago
James Laska 6059ce34e3 Minor adjustments to subscription_manager and rhnreg_ks 11 years ago
James Laska 65993e8f35 Reorganize subscription_manager module.
Also ...
 * When unregistering, first unsubscribe from all content
11 years ago
James Laska a2cbcec328 The rhnreg_ks module acts as a wrapper to the command 'rhnreg_ks'. The
rhnreg_ks command allows users to manage registration to a Red Hat
Network (RHN) (e.g. rhn.redhat.com) server.  The moduel will also
interact with the specified RHN system via XMLRPC as needed.

Before proceeding with registration, the rhnreg_ks module will enable
the system to receive updates from RHN.  This involves enabling the
appropriate RHN yum plugin, as well as disabling an active
subscription-manager yum plugin.

Once enabled, the module will support the following operations:
 * configure
 * register
 * subscribe to custom child channels (see `rhn-channel` command)
 * unregister
11 years ago
Patrick Callahan 79b56667e3 Simple zypper module to install, remove, or upgrades packages. 11 years ago
Michael DeHaan df4c444571 Fixup doc YAML 11 years ago
James Laska 19b7cb6653 Updated examples and documentation 11 years ago
James Laska 3ba19bf369 Add RHN subscription_manager module
The subscription_manager module acts as a wrapper to the command
'subscription-manager'.  The subscription-manager utility allows users
to manage RHN registration, subscription and yum repositories from the
Red Hat Entitlement platform.

Currently, this module supports the following sub-commands:
 * config
 * [un]register
 * subscribe
11 years ago
y-p 50666eac34 Add is_local_path check to pip module, for skipping --use-mirrors 11 years ago
y-p 9ebb7450d5 Add chdir parameter to pip 11 years ago
Michael DeHaan 3a635d2d26 Lots of formatting fixes 11 years ago
Michael DeHaan b499f0754e Merge pull request #2986 from wbowling/devel
Fixes apt_repository always reporting file uri repos as changed
11 years ago
Michael DeHaan 82909179a0 Merge pull request #2976 from stoned/pip-virtualenv_command-pathname
Allow virtualenv_command argument of the pip module to be a pathname
11 years ago
Michael DeHaan e68894ea45 Merge pull request #2975 from stoned/doc-pip-fix
Fix pip module documentation (YAML quoting)
11 years ago
Michael DeHaan e3af9258ae Merge pull request #2995 from SirScott/pip-sudo-user
pip module -- sudo_user permission problem fix
11 years ago
Stoned Elipot 81e0a7adcc Fix typo in npm module documentation preventing it to be processed by ansible-doc 11 years ago
Scott Sturdivant b2542bff72 Chdir to tempdir to prevent permissions problems. 11 years ago