File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 1616 stat : path='/etc/yum/pluginconf.d/rhnplugin.conf'
1717 register : rhnplugin_file
1818
19+ # for the "default([])" see here:
20+ # https://github.com/dev-sec/ansible-os-hardening/issues/99 and
21+ # https://stackoverflow.com/questions/37067827/ansible-deprecation-warning-for-undefined-variable-despite-when-clause
1922- name : activate gpg-check for yum-repos
2023 replace : dest='{{item}}' regexp='^\s*gpgcheck=0' replace='gpgcheck=1'
2124 with_items :
22- - ' {{ yum_repos.stdout_lines }}'
2325 - ' /etc/yum.conf'
26+ - ' {{ yum_repos.stdout_lines| default([]) }}'
2427
2528- name : activate gpg-check for yum rhn if it exists
2629 replace : dest='/etc/yum/pluginconf.d/rhnplugin.conf' regexp='^\s*gpgcheck=0' replace='gpgcheck=1'
You can’t perform that action at this time.
0 commit comments