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/20211012004104.0d483245%40gmail.com.
pgpFVsid7jASn.pgp
Description: OpenPGP digital signature
