git.lirion.de

Of git, get, and gud

aboutsummaryrefslogtreecommitdiffstats
path: root/roles/patch_debian/tasks/main.yaml
diff options
context:
space:
mode:
authormail_redacted_for_web 2024-04-14 13:44:44 +0200
committermail_redacted_for_web 2024-04-14 13:44:44 +0200
commitcac321dd9fdf1a7a5367ed1baf535453e1f0c05b (patch)
tree7d46c143ad48f908187f78e85889257e91355612 /roles/patch_debian/tasks/main.yaml
parent8c8080b20fe4c4c2e6fca23f48051a4e25257e2c (diff)
downloadansible-cac321dd9fdf1a7a5367ed1baf535453e1f0c05b.tar.bz2
bugfixes: query dict keys' existence
Diffstat (limited to 'roles/patch_debian/tasks/main.yaml')
-rw-r--r--roles/patch_debian/tasks/main.yaml3
1 files changed, 2 insertions, 1 deletions
diff --git a/roles/patch_debian/tasks/main.yaml b/roles/patch_debian/tasks/main.yaml
index b9641a6..b6ab193 100644
--- a/roles/patch_debian/tasks/main.yaml
+++ b/roles/patch_debian/tasks/main.yaml
@@ -76,6 +76,7 @@
failed_when: svcout.rc > 2
become: true
when:
+ - nrex.stat is defined
- nrex.stat.exists == true
- nrex.stat.executable == true
- name: Clean apt cache
@@ -98,4 +99,4 @@
test_command: uptime
reboot_command: "/bin/systemctl reboot"
become: true
- when: kernout.rc > 2 or svcout.rc > 2
+ when: ( kernout.rc is defined and kernout.rc > 2 ) or ( svcout.rc is defined and svcout.rc > 2 )