X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=playbooks%2Fdebian%2Froles%2Fremove-systemd%2Ftasks%2Fmain.yml;h=9c31cef258e7fdc4dbeec5b5fa6d449ec1341211;hb=466a18204652f9e1849665937f5d1dd7bcd6c4f4;hp=144a05da3f34cfe2616ffc62aeae23c6ad5099f0;hpb=edf447b86f291118443987ab67de35b99e9b2d38;p=ansible.git diff --git a/playbooks/debian/roles/remove-systemd/tasks/main.yml b/playbooks/debian/roles/remove-systemd/tasks/main.yml index 144a05d..9c31cef 100644 --- a/playbooks/debian/roles/remove-systemd/tasks/main.yml +++ b/playbooks/debian/roles/remove-systemd/tasks/main.yml @@ -35,8 +35,8 @@ - name: Reboot if SystemD is still active become: true reboot: - when: purged.rc != 0 + when: "'rc' in purged and purged.rc != 0" - name: Purge SystemD after reboot import_tasks: remove-systemd.yml - when: purged.rc != 0 + when: "'rc' in purged and purged.rc != 0"