X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=playbooks%2Fdebian%2Froles%2Fremove-systemd%2Ftasks%2Fmain.yml;h=76ff12589bb11e0d5d64af076fd6f12181a6a0b8;hb=98b5772b5f281a610dad37a8c4d45c63fa6ebcb8;hp=144a05da3f34cfe2616ffc62aeae23c6ad5099f0;hpb=4e33f6d7b7f2dca2837601508e51a4ea4e9fcbf1;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..76ff125 100644 --- a/playbooks/debian/roles/remove-systemd/tasks/main.yml +++ b/playbooks/debian/roles/remove-systemd/tasks/main.yml @@ -6,6 +6,7 @@ owner: root group: root mode: '0640' + force: no - name: Install SysV init become: true @@ -35,8 +36,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"