From 54ba31aeefd818e1a7c4b88e1b998e2aeac33ee0 Mon Sep 17 00:00:00 2001 From: Praveen Kumar Date: Wed, 29 Oct 2014 10:29:46 +0530 Subject: [PATCH] As per yum module documents it support 'present, absent and latest' Current intro doc is pointing older way of using yum module. --- docsite/rst/intro_adhoc.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docsite/rst/intro_adhoc.rst b/docsite/rst/intro_adhoc.rst index 787a7e76ee..2646945be4 100644 --- a/docsite/rst/intro_adhoc.rst +++ b/docsite/rst/intro_adhoc.rst @@ -154,11 +154,11 @@ with yum. Ensure a package is installed, but don't update it:: - $ ansible webservers -m yum -a "name=acme state=installed" + $ ansible webservers -m yum -a "name=acme state=present" Ensure a package is installed to a specific version:: - $ ansible webservers -m yum -a "name=acme-1.5 state=installed" + $ ansible webservers -m yum -a "name=acme-1.5 state=present" Ensure a package is at the latest version:: @@ -166,7 +166,7 @@ Ensure a package is at the latest version:: Ensure a package is not installed:: - $ ansible webservers -m yum -a "name=acme state=removed" + $ ansible webservers -m yum -a "name=acme state=absent" Ansible has modules for managing packages under many platforms. If your package manager does not have a module available for it, you can install