Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
312ba593
Commit
312ba593
authored
Feb 05, 2013
by
Stoned Elipot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix yum module examples: the 'pkg' parameter is now 'name'
parent
ffd4ae11
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
docsite/rst/examples.rst
+4
-4
No files found.
docsite/rst/examples.rst
View file @
312ba593
...
@@ -121,19 +121,19 @@ with yum.
...
@@ -121,19 +121,19 @@ 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 "
pkg
=acme state=installed"
$ ansible webservers -m yum -a "
name
=acme state=installed"
Ensure a package is installed to a specific version::
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::
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::
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
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
for other packages for now using the command module or (better!) contribute a module
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment