--- - name: Remove root password for hosts hosts: all become: yes tasks: - name: Remove root password ansible.builtin.command: cmd: passwd -d root