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
92442831
Commit
92442831
authored
Mar 07, 2014
by
Richard C Isaacson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Spelling and formatting.
parent
29f15284
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
library/packaging/yum
+3
-2
No files found.
library/packaging/yum
View file @
92442831
...
@@ -110,7 +110,7 @@ EXAMPLES = '''
...
@@ -110,7 +110,7 @@ EXAMPLES = '''
- name: remove the Apache package
- name: remove the Apache package
yum: name=httpd state=removed
yum: name=httpd state=removed
- name: install the latest version of Apche from the testing repo
- name: install the latest version of Ap
a
che from the testing repo
yum: name=httpd enablerepo=testing state=installed
yum: name=httpd enablerepo=testing state=installed
- name: upgrade all packages
- name: upgrade all packages
...
@@ -463,6 +463,7 @@ def install(module, items, repoq, yum_basecmd, conf_file, en_repos, dis_repos):
...
@@ -463,6 +463,7 @@ def install(module, items, repoq, yum_basecmd, conf_file, en_repos, dis_repos):
res
[
'msg'
]
=
''
res
[
'msg'
]
=
''
res
[
'rc'
]
=
0
res
[
'rc'
]
=
0
res
[
'changed'
]
=
False
res
[
'changed'
]
=
False
downgrade
=
False
downgrade
=
False
for
spec
in
items
:
for
spec
in
items
:
...
@@ -540,7 +541,7 @@ def install(module, items, repoq, yum_basecmd, conf_file, en_repos, dis_repos):
...
@@ -540,7 +541,7 @@ def install(module, items, repoq, yum_basecmd, conf_file, en_repos, dis_repos):
continue
continue
# downgrade - the yum install command will only install or upgrade to a spec version, it will
# downgrade - the yum install command will only install or upgrade to a spec version, it will
# not install an older version of an RPM even if specif
ed by the install spec. So we need to
# not install an older version of an RPM even if specif
ied by the install spec. So we need to
# determine if this is a downgrade, and then use the yum downgrade command to install the RPM.
# determine if this is a downgrade, and then use the yum downgrade command to install the RPM.
pkg_name
=
splitFilename
(
spec
)[
0
]
pkg_name
=
splitFilename
(
spec
)[
0
]
pkgs
=
is_installed
(
module
,
repoq
,
pkg_name
,
conf_file
,
en_repos
=
en_repos
,
dis_repos
=
dis_repos
,
is_pkg
=
True
)
pkgs
=
is_installed
(
module
,
repoq
,
pkg_name
,
conf_file
,
en_repos
=
en_repos
,
dis_repos
=
dis_repos
,
is_pkg
=
True
)
...
...
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