In apt module show 'name' vs pkg to standardize with the rest of the modules. 'pkg' is an alias for name.

reviewable/pr18780/r1
Michael DeHaan 11 years ago
parent 3d9c5ceafd
commit 594e5dcdd7

@ -27,7 +27,7 @@ description:
- Manages I(apt) packages (such as for Debian/Ubuntu). - Manages I(apt) packages (such as for Debian/Ubuntu).
version_added: "0.0.2" version_added: "0.0.2"
options: options:
pkg: name:
description: description:
- A package name, like C(foo), or package specifier with version, like C(foo=1.0). Wildcards (fnmatch) like apt* are also supported. - A package name, like C(foo), or package specifier with version, like C(foo=1.0). Wildcards (fnmatch) like apt* are also supported.
required: false required: false
@ -102,22 +102,22 @@ notes:
EXAMPLES = ''' EXAMPLES = '''
# Update repositories cache and install "foo" package # Update repositories cache and install "foo" package
- apt: pkg=foo update_cache=yes - apt: name=foo update_cache=yes
# Remove "foo" package # Remove "foo" package
- apt: pkg=foo state=absent - apt: name=foo state=absent
# Install the package "foo" # Install the package "foo"
- apt: pkg=foo state=present - apt: name=foo state=present
# Install the version '1.00' of package "foo" # Install the version '1.00' of package "foo"
- apt: pkg=foo=1.00 state=present - apt: name=foo=1.00 state=present
# Update the repository cache and update package "nginx" to latest version using default release squeeze-backport # Update the repository cache and update package "nginx" to latest version using default release squeeze-backport
- apt: pkg=nginx state=latest default_release=squeeze-backports update_cache=yes - apt: name=nginx state=latest default_release=squeeze-backports update_cache=yes
# Install latest version of "openjdk-6-jdk" ignoring "install-recommends" # Install latest version of "openjdk-6-jdk" ignoring "install-recommends"
- apt: pkg=openjdk-6-jdk state=latest install_recommends=no - apt: name=openjdk-6-jdk state=latest install_recommends=no
# Update all packages to the latest version # Update all packages to the latest version
- apt: upgrade=dist - apt: upgrade=dist

Loading…
Cancel
Save