Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add description and examples for the name parameter accepts a url or a l... #3941

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion library/packaging/yum
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ description:
options:
name:
description:
- "package name, or package specifier with version, like C(name-1.0) in state=latest this can be '*' which means run: yum -y update"
- "package name, or package specifier with version, like C(name-1.0) in state=latest this can be '*' which means run: yum -y update. also you can pass a url or a local path to a rpm file."
required: true
default: null
aliases: []
Expand Down Expand Up @@ -97,6 +97,8 @@ EXAMPLES = '''
- yum: name=httpd state=removed
- yum: name=httpd enablerepo=testing state=installed
- yum: name=* state=latest
- yum: name=http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm state=present
- yum: name=/usr/local/src/nginx-release-centos-6-0.el6.ngx.noarch.rpm state=present
'''

def_qf = "%{name}-%{version}-%{release}.%{arch}"
Expand Down