I have some package added in yum exclude list in /etc/yum.conf and I want to remove a specific package from a exclude list
example:
exclude=java* exclude=kernel* java* exclude=java* kernel* exclude=kernel* abc* java* def*
I tried to add # but that do not serve the purpose and add comments to all exclude statement.
- name: Comment Java exclusion
replace:
path: /etc/yum.conf
regexp: '(.*java*)'
replace: '#\1'
Added more case scenarios.