From f76556e56d586e339fae9fabb7e0c112baff0849 Mon Sep 17 00:00:00 2001 From: Tayeb Ben Achour Date: Fri, 24 May 2019 18:01:48 +0200 Subject: [PATCH] Update package.py (#56731) The "-" does not work as expected if I want to get a specific version of a package. After replacing the dash with the equal sign. the task passed successfully. Depends on package manager - adds example so we show both syntaxes. --- lib/ansible/modules/packaging/os/package.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/packaging/os/package.py b/lib/ansible/modules/packaging/os/package.py index d2c97fb43b..baa87e5be2 100644 --- a/lib/ansible/modules/packaging/os/package.py +++ b/lib/ansible/modules/packaging/os/package.py @@ -27,8 +27,9 @@ description: options: name: description: - - "Package name, or package specifier with version, like C(name-1.0)." - - "Be aware that packages are not always named the same and this module will not 'translate' them per distro." + - Package name, or package specifier with version. + - Syntax varies with package manager. For example C(name-1.0) or C(name=1.0). + - Package names also vary with package manager; this module will not "translate" them per distro. For example C(libyaml-dev), C(libyaml-devel). required: true state: description: