1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

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:
James Cammarata 2013-08-24 19:43:33 -07:00
commit 7625f40f99

View file

@ -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}"