Commit 54ba31ae by Praveen Kumar

As per yum module documents it support 'present, absent and latest'

Current intro doc is pointing older way of using yum module.
parent 70555052
...@@ -154,11 +154,11 @@ with yum. ...@@ -154,11 +154,11 @@ with yum.
Ensure a package is installed, but don't update it:: 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:: 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:: Ensure a package is at the latest version::
...@@ -166,7 +166,7 @@ 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:: 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 Ansible has modules for managing packages under many platforms. If your package manager
does not have a module available for it, you can install does not have a module available for it, you can install
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment