From d2ac7ace01aabe52a910e696a9faa3a0bfb9e2e6 Mon Sep 17 00:00:00 2001 From: Anwesha Chatterjee Date: Fri, 16 Feb 2018 18:52:49 +1000 Subject: [PATCH] Add information on the various package states (#35882) --- lib/ansible/modules/packaging/os/yum.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/ansible/modules/packaging/os/yum.py b/lib/ansible/modules/packaging/os/yum.py index 7d596474a93..adad0ffe635 100644 --- a/lib/ansible/modules/packaging/os/yum.py +++ b/lib/ansible/modules/packaging/os/yum.py @@ -43,6 +43,9 @@ options: state: description: - 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's not of the latest available version. + - C(absent) and C(removed) will remove the specified package. choices: [ absent, installed, latest, present, removed ] default: present enablerepo: