Commit f0f412ae authored by Jonas Carlo Jansen's avatar Jonas Carlo Jansen

introduce disable_excludes to disable yum excludes

parent 1e9fb27b
......@@ -4,4 +4,5 @@
| excluded_packages | - | Packages to exclude from update. May include * |
| disabled_repos | - | Repositorys to exclude during update |
| enabled_repos | - | repositorys to enable during update |
| security_updates_only | yes | may be "yes" or "no", wheter to install only security updates or all |
\ No newline at end of file
| security_updates_only | yes | may be "yes" or "no", wheter to install only security updates or all |
| disable_excludes | - | excludes to be disabeld. If set to all, disables all excludes. If set to main, disable excludes defined in [main] in yum.conf. If set to repoid, disable excludes defined for given repo id. |
......@@ -6,7 +6,7 @@
until: yum_utils_install is succeeded
- name: Security updates only
command: yum -y --security update --exclude="{{ excluded_packages | default(omit, true)}}"
command: yum -y --security update {% if excluded_packages is definde %} --exclude="{{ excluded_packages }} {% endif %} {% if disable_excludes is defined %} --disableexcludes={{ disable_excludes }} {% endif %}"
args:
warn: False
when: security_updates_only == "yes"
......@@ -28,6 +28,7 @@
exclude: '{{ excluded_packages | default(omit, true) }}'
disablerepo: '{{ disabled_repos | default(omit, true) }}'
enablerepo: '{{ enabled_repos | default(omit, true) }}'
disable_excludes: '{{ disable_excludes | default(omit, true) }}'
when: security_updates_only == "no"
tags:
- update_all
......
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