git.lirion.de

Of git, get, and gud

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Pfeiffer <coding _ lirion.de> 2020-02-25 12:01:56 +0100
committerHarald Pfeiffer <coding _ lirion.de> 2020-02-25 12:01:56 +0100
commita79aa7e9dc51b85442722b830e66007473b5ff2f (patch)
treeb2a1c9cc6f66fb3d0766e87c280863606d6c8d51
parent272ca610a74dc3c80264a89797b8642f0dfb6864 (diff)
downloadansible-a79aa7e9dc51b85442722b830e66007473b5ff2f.tar.bz2
Only check for rkhunter existence if apt triggers update.
-rw-r--r--apt-upgrade.yml2
1 files changed, 2 insertions, 0 deletions
diff --git a/apt-upgrade.yml b/apt-upgrade.yml
index cc8b233..691c9b5 100644
--- a/apt-upgrade.yml
+++ b/apt-upgrade.yml
@@ -41,6 +41,8 @@
path: /usr/bin/rkhunter
register: rkhex
ignore_errors: true
+ when:
+ - aptout.stdout != ""
- name: rkhunter pre-check
command: rkhunter -c --sk --rwo --ns
become: true