From 39608128c5e36d1308a671062fc6797787318597 Mon Sep 17 00:00:00 2001 From: Jonathan Mainguy Date: Wed, 25 Jan 2017 06:35:28 -0500 Subject: [PATCH] Fixup documentation for the list option in yum module (#20605) --- lib/ansible/modules/packaging/os/yum.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/ansible/modules/packaging/os/yum.py b/lib/ansible/modules/packaging/os/yum.py index 320c9d9d747..8a626d7c324 100644 --- a/lib/ansible/modules/packaging/os/yum.py +++ b/lib/ansible/modules/packaging/os/yum.py @@ -76,7 +76,7 @@ options: default: null list: description: - - Various (non-idempotent) commands for usage with C(/usr/bin/ansible) and I(not) playbooks. See examples. + - Package name to run the equivalent of yum list against. required: false default: null state: @@ -229,6 +229,11 @@ EXAMPLES = ''' yum: name: "@^gnome-desktop-environment" state: present + +- name: List ansible packages and register result to print with debug later. + yum: + list: ansible + register: result ''' # 64k. Number of bytes to read at a time when manually downloading pkgs via a url