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
cfcdc340
Commit
cfcdc340
authored
Dec 26, 2013
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use task names in examples.
parent
4765032f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
16 deletions
+22
-16
library/packaging/yum
+22
-16
No files found.
library/packaging/yum
View file @
cfcdc340
...
@@ -31,7 +31,7 @@ module: yum
...
@@ -31,7 +31,7 @@ module: yum
version_added: historical
version_added: historical
short_description: Manages packages with the I(yum) package manager
short_description: Manages packages with the I(yum) package manager
description:
description:
-
Will install, upgrade, remove, and list packages or package
groups with the I(yum) package manager.
-
Installs, upgrade, removes, and lists packages and
groups with the I(yum) package manager.
options:
options:
name:
name:
description:
description:
...
@@ -41,7 +41,7 @@ options:
...
@@ -41,7 +41,7 @@ options:
aliases: []
aliases: []
list:
list:
description:
description:
- Various
non-idempotent
commands for usage with C(/usr/bin/ansible) and I(not) playbooks. See examples.
- Various
(non-idempotent)
commands for usage with C(/usr/bin/ansible) and I(not) playbooks. See examples.
required: false
required: false
default: null
default: null
state:
state:
...
@@ -94,20 +94,26 @@ author: Seth Vidal
...
@@ -94,20 +94,26 @@ author: Seth Vidal
'''
'''
EXAMPLES
=
'''
EXAMPLES
=
'''
# description: installs the latest version of httpd
- name: install the latest version of Apache
- yum: name=httpd state=latest
yum: name=httpd state=latest
# description: removes the httpd package
- yum: name=httpd state=removed
- name: remove the Apache package
# description: installs the latest version of httpd from the testing repo
yum: name=httpd state=removed
- yum: name=httpd enablerepo=testing state=installed
# description: upgrades all packages
- name: install the latest version of Apche from the testing repo
- yum: name=* state=latest
yum: name=httpd enablerepo=testing state=installed
# description: installs the nginx rpm from a remote repo
- yum: name=http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm state=present
- name: upgrade all packages
# description: installs nginx rpm from a local file
yum: name=* state=latest
- yum: name=/usr/local/src/nginx-release-centos-6-0.el6.ngx.noarch.rpm state=present
# description: installs the package group 'Development tool'
- name: install the nginx rpm from a remote repo
- yum: name="@Development tools" state=present
yum: name=http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm state=present
- name: install nginx rpm from a local file
yum: name=/usr/local/src/nginx-release-centos-6-0.el6.ngx.noarch.rpm state=present
- name: install the 'Development tools' package group
yum: name="@Development tools" state=present
'''
'''
def_qf
=
"
%
{name}-
%
{version}-
%
{release}.
%
{arch}"
def_qf
=
"
%
{name}-
%
{version}-
%
{release}.
%
{arch}"
...
...
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