summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToshio Kuratomi <toshio@fedoraproject.org>2015-07-09 08:16:17 -0700
committerToshio Kuratomi <toshio@fedoraproject.org>2015-07-09 08:17:00 -0700
commitd46c036b75a82a07c42731154677512d069c4386 (patch)
treebcb42838dfe0e34be9e07ae58fd9c7c86a8e5607
parent007efe438d84058490d6e29f7091d9e58a0bc42c (diff)
downloadansible-modules-core-d46c036b75a82a07c42731154677512d069c4386.tar.gz
Add notes about loop squashing and 1.9.2 change to install packages in one yum transaction
-rw-r--r--packaging/os/yum.py16
1 files changed, 14 insertions, 2 deletions
diff --git a/packaging/os/yum.py b/packaging/os/yum.py
index 14339b4c..29d6b010 100644
--- a/packaging/os/yum.py
+++ b/packaging/os/yum.py
@@ -118,10 +118,22 @@ options:
choices: ["yes", "no"]
aliases: []
-notes: []
+notes:
+ - When used with a loop of package names in a playbook, ansible optimizes
+ the call to the yum module. Instead of calling the module with a single
+ package each time through the loop, ansible calls the module once with all
+ of the package names from the loop.
+ - In versions prior to 1.9.2 this module installed and removed each package
+ given to the yum module separately. This caused problems when packages
+ specified by filename or url had to be installed or removed together. In
+ 1.9.2 this was fixed so that packages are installed in one yum
+ transaction. However, if one of the packages adds a new yum repository
+ that the other packages come from (such as epel-release) then that package
+ needs to be installed in a separate task. This mimics yum's command line
+ behaviour.
# informational: requirements for nodes
requirements: [ yum ]
-author:
+author:
- "Ansible Core Team"
- "Seth Vidal"
'''