From 949744c1940f5f791bc1f9c604915848d7d95d4a Mon Sep 17 00:00:00 2001 From: Hiroaki Nakamura Date: Sun, 25 Aug 2013 02:30:41 +0900 Subject: [PATCH] Add description and examples for the name parameter accepts a url or a local path to a rpm file. --- packaging/yum | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packaging/yum b/packaging/yum index 797a0e71c62..b0f0b5ea5aa 100644 --- a/packaging/yum +++ b/packaging/yum @@ -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: [] @@ -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}"