From 175c48123603e0a34f50651a63e4a771d126b9d7 Mon Sep 17 00:00:00 2001 From: "patchback[bot]" <45432694+patchback[bot]@users.noreply.github.com> Date: Sun, 27 Jun 2021 19:05:38 +0200 Subject: [PATCH] pacman: Descriptive state documentation (#2894) (#2897) * pacman: Descriptive state documentation * Update plugins/modules/packaging/os/pacman.py Co-authored-by: Felix Fontein Co-authored-by: Martin Rys Co-authored-by: Felix Fontein (cherry picked from commit debb15efbe7b819a5dc01e6053aa3b2b964c0260) Co-authored-by: Martin --- plugins/modules/packaging/os/pacman.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/plugins/modules/packaging/os/pacman.py b/plugins/modules/packaging/os/pacman.py index b19528ba9e..24dcbe8746 100644 --- a/plugins/modules/packaging/os/pacman.py +++ b/plugins/modules/packaging/os/pacman.py @@ -30,9 +30,12 @@ options: state: description: - - Desired state of the package. + - Whether to install (C(present) or C(installed), C(latest)), or remove (C(absent) or C(removed)) a package. + - C(present) and C(installed) will simply ensure that a desired package is installed. + - C(latest) will update the specified package if it is not of the latest available version. + - C(absent) and C(removed) will remove the specified package. default: present - choices: [ absent, latest, present, installed, removed ] + choices: [ absent, installed, latest, present, removed ] type: str force: