From 786a8abee6b9e5af0ee557f4c794ea46a33e8922 Mon Sep 17 00:00:00 2001 From: David Gries Date: Thu, 31 Aug 2023 21:14:27 +0200 Subject: [PATCH] yum/dnf/dnf5/zypper documentation - fix grammatical error (#81601) --- lib/ansible/modules/dnf.py | 2 +- lib/ansible/modules/dnf5.py | 2 +- lib/ansible/modules/yum.py | 2 +- test/support/integration/plugins/modules/zypper.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/ansible/modules/dnf.py b/lib/ansible/modules/dnf.py index b28fa4d1760..7f5afc3908e 100644 --- a/lib/ansible/modules/dnf.py +++ b/lib/ansible/modules/dnf.py @@ -29,7 +29,7 @@ options: description: - "A package name or package specifier with version, like C(name-1.0). When using state=latest, this can be '*' which means run: dnf -y update. - You can also pass a url or a local path to a rpm file. + You can also pass a url or a local path to an rpm file. To operate on several packages this can accept a comma separated string of packages or a list of packages." - Comparison operators for package version are valid here C(>), C(<), C(>=), C(<=). Example - C(name >= 1.0). Spaces around the operator are required. diff --git a/lib/ansible/modules/dnf5.py b/lib/ansible/modules/dnf5.py index bf87cd4c0ce..823d3a7fb96 100644 --- a/lib/ansible/modules/dnf5.py +++ b/lib/ansible/modules/dnf5.py @@ -19,7 +19,7 @@ options: description: - "A package name or package specifier with version, like C(name-1.0). When using state=latest, this can be '*' which means run: dnf -y update. - You can also pass a url or a local path to a rpm file. + You can also pass a url or a local path to an rpm file. To operate on several packages this can accept a comma separated string of packages or a list of packages." - Comparison operators for package version are valid here C(>), C(<), C(>=), C(<=). Example - C(name >= 1.0). Spaces around the operator are required. diff --git a/lib/ansible/modules/yum.py b/lib/ansible/modules/yum.py index e9e2d8502b1..3b6a45756cd 100644 --- a/lib/ansible/modules/yum.py +++ b/lib/ansible/modules/yum.py @@ -37,7 +37,7 @@ options: - If a previous version is specified, the task also needs to turn O(allow_downgrade) on. See the O(allow_downgrade) documentation for caveats with downgrading packages. - When using O(state=latest), this can be V('*') which means run C(yum -y update). - - You can also pass a url or a local path to a rpm file (using O(state=present)). + - You can also pass a url or a local path to an rpm file (using O(state=present)). To operate on several packages this can accept a comma separated string of packages or (as of 2.0) a list of packages. aliases: [ pkg ] type: list diff --git a/test/support/integration/plugins/modules/zypper.py b/test/support/integration/plugins/modules/zypper.py index b5ed53075c6..cd67b605ff3 100644 --- a/test/support/integration/plugins/modules/zypper.py +++ b/test/support/integration/plugins/modules/zypper.py @@ -41,7 +41,7 @@ options: - Package name C(name) or package specifier or a list of either. - Can include a version like C(name=1.0), C(name>3.4) or C(name<=2.7). If a version is given, C(oldpackage) is implied and zypper is allowed to update the package within the version range given. - - You can also pass a url or a local path to a rpm file. + - You can also pass a url or a local path to an rpm file. - When using state=latest, this can be '*', which updates all installed packages. required: true aliases: [ 'pkg' ]