diff options
author | mail_redacted_for_web | 2024-04-14 13:44:44 +0200 |
---|---|---|
committer | mail_redacted_for_web | 2024-04-14 13:44:44 +0200 |
commit | cac321dd9fdf1a7a5367ed1baf535453e1f0c05b (patch) | |
tree | 7d46c143ad48f908187f78e85889257e91355612 /roles/patch_debian/tasks | |
parent | 8c8080b20fe4c4c2e6fca23f48051a4e25257e2c (diff) | |
download | ansible-cac321dd9fdf1a7a5367ed1baf535453e1f0c05b.tar.bz2 |
bugfixes: query dict keys' existence
Diffstat (limited to 'roles/patch_debian/tasks')
-rw-r--r-- | roles/patch_debian/tasks/main.yaml | 3 |
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 ) |