Yes, thanks Vladimir. Found that out by myself already. Works. [email protected] schrieb am Dienstag, 12. Oktober 2021 um 00:41:20 UTC+2:
> On Mon, 11 Oct 2021 12:07:59 -0700 (PDT) > "'Neil Young' via Ansible Project" <[email protected]> > wrote: > > > #PasswordAuthentication yes > > PasswordAuthentication yes > > > > I'm trying to change BOTH to "no" > > Use the module *replace*, e.g. > > - replace: > path: /etc/ssh/sshd_config > regexp: '^(#*)PasswordAuthentication yes' > replace: '\1PasswordAuthentication no' > > -- > Vladimir Botka > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/4d2e5b29-eb92-498f-b9b8-e2e62575b584n%40googlegroups.com.
