Skip to content

Commit f1fbc9f

Browse files
committed
add exclude packages variable
1 parent a9ef779 commit f1fbc9f

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

defaults/main.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,9 @@ el_patching_required_packages: "yum-utils"
44
el_patching_reboot_timeout: 600
55
el_patching_method: "security"
66
el_patching_auto_reboot: false
7-
el_patching_check_mode: false
7+
el_patching_check_mode: false
8+
9+
# Optional exclude variable for group_vars or host_vars
10+
# el_patching_exclude_packages:
11+
# - tar
12+
# - zip

tasks/main.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
ansible.builtin.dnf:
1111
name: "*"
1212
state: latest
13+
exclude: "{{ el_patching_exclude_packages | default(omit) }}"
1314
check_mode: "{{ el_patching_check_mode }}"
1415
when: el_patching_method == "all"
1516

@@ -18,6 +19,7 @@
1819
name: "*"
1920
security: true
2021
state: latest
22+
exclude: "{{ el_patching_exclude_packages | default(omit) }}"
2123
check_mode: "{{ el_patching_check_mode }}"
2224
when: el_patching_method == "security"
2325

@@ -26,6 +28,7 @@
2628
name: "*"
2729
bugfix: true
2830
state: latest
31+
exclude: "{{ el_patching_exclude_packages | default(omit) }}"
2932
check_mode: "{{ el_patching_check_mode }}"
3033
when: el_patching_method == "bugfix"
3134

0 commit comments

Comments
 (0)