From aa9e05baa2e3ac4951d4e6b28b56a5eb381152c6 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. --- library/packaging/yum | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/library/packaging/yum b/library/packaging/yum index 797a0e71c6..b0f0b5ea5a 100644 --- a/library/packaging/yum +++ b/library/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}"