From debb15efbe7b819a5dc01e6053aa3b2b964c0260 Mon Sep 17 00:00:00 2001 From: Martin Date: Sun, 27 Jun 2021 18:47:11 +0200 Subject: [PATCH] pacman: Descriptive state documentation (#2894) * 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 --- 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 859c90a6c4..372d13cd49 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: