Merge pull request #3941 from hnakamur/update_yum_doc_for_name_accepts_url_and_path
Add description and examples for the name parameter accepts a url or a l...
This commit is contained in:
commit
7625f40f99
1 changed files with 3 additions and 1 deletions
|
@ -34,7 +34,7 @@ description:
|
||||||
options:
|
options:
|
||||||
name:
|
name:
|
||||||
description:
|
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
|
required: true
|
||||||
default: null
|
default: null
|
||||||
aliases: []
|
aliases: []
|
||||||
|
@ -97,6 +97,8 @@ EXAMPLES = '''
|
||||||
- yum: name=httpd state=removed
|
- yum: name=httpd state=removed
|
||||||
- yum: name=httpd enablerepo=testing state=installed
|
- yum: name=httpd enablerepo=testing state=installed
|
||||||
- yum: name=* state=latest
|
- 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}"
|
def_qf = "%{name}-%{version}-%{release}.%{arch}"
|
||||||
|
|
Loading…
Reference in a new issue