--- - name: Restart systemd-logind become: yes systemd: name: systemd-logind state: restarted