From 312ba593fdb47ae8b3448f49ced1fc23cafc1ad8 Mon Sep 17 00:00:00 2001 From: Stoned Elipot Date: Tue, 5 Feb 2013 22:31:51 +0100 Subject: [PATCH] Fix yum module examples: the 'pkg' parameter is now 'name' --- docsite/rst/examples.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docsite/rst/examples.rst b/docsite/rst/examples.rst index ff6762f50f..43ebbd70bd 100644 --- a/docsite/rst/examples.rst +++ b/docsite/rst/examples.rst @@ -121,19 +121,19 @@ with yum. Ensure a package is installed, but don't update it:: - $ ansible webservers -m yum -a "pkg=acme state=installed" + $ ansible webservers -m yum -a "name=acme state=installed" Ensure a package is installed to a specific version:: - $ ansible webservers -m yum -a "pkg=acme-1.5 state=installed" + $ ansible webservers -m yum -a "name=acme-1.5 state=installed" Ensure a package is at the latest version:: - $ ansible webservers -m yum -a "pkg=acme state=latest" + $ ansible webservers -m yum -a "name=acme state=latest" Ensure a package is not installed:: - $ ansible webservers -m yum -a "pkg=acme state=removed" + $ ansible webservers -m yum -a "name=acme state=removed" Currently Ansible only has modules for managing packages with yum and apt. You can install for other packages for now using the command module or (better!) contribute a module