Skip to content

Commit

Permalink
add blacklist_interp
Browse files Browse the repository at this point in the history
  • Loading branch information
mabezi authored and t2d committed Aug 25, 2024
1 parent 6553705 commit 46400a6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ needrestart_blacklist_rc: []
# - /opt/.*/java
needrestart_blacklist_bin: []

# Blacklist files as regex
# Example:
# needrestart_blacklist_interp:
# - /nexus-data/.*/bundle.jar
needrestart_blacklist_interp: []

# needrestart check_mk related
needrestart_checkmk_localcheckdir: /usr/lib/check_mk_agent/local
needrestart_checkmk_localcheck: False
Expand Down
7 changes: 7 additions & 0 deletions templates/needrestart_blacklist.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,10 @@ push ( @{$nrconf{blacklist_rc}}, (
)
);

#Blacklist script files
push ( @{$nrconf{blacklist_interp}}, (
{% for blacklistinterp in needrestart_blacklist_interp %}
qr(^{{ blacklistinterp }}$),
{% endfor %}
)
);

0 comments on commit 46400a6

Please sign in to comment.