On 05.09.2019 13:46, Jon Adcock wrote: > Cyril,when I tried your regex and Ansible barked about the \s Both before > and after PermitRootLogin I tried double bask-slash s (#|#\\s|\\s|) and > that works.
That is because you are using double quotes and not single quotes around the regexp. You could also remove the quotes since you don't actually need them. -- Kai Stian Olstad -- 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 ansible-project+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/6e979385-c026-5566-d72b-8e710650ae8c%40olstad.com.