This will destroy the target's existing sudoers file which would be a very, very bad thing. Command should be:
echo '#{datastore['USER']}  ALL=(ALL) ALL' >> /etc/sudoers