mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Add description and examples for the name parameter accepts a url or a local path to a rpm file.
This commit is contained in:
parent
a0447a5243
commit
aa9e05baa2
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