exactly! i found though this statement in ansible doce
Inside single quotes, you can represent a single quote in your string by
using two single quotes next to each other.
On Tuesday, November 15, 2016 at 4:41:25 PM UTC+1, Jürgen Haas wrote:
>
> Had the same problem not long ago. Escaping here works with doubling the
> single quote.
>
> Am Dienstag, 15. November 2016 16:29:47 UTC+1 schrieb Dader Grund:
>>
>> hallo,
>>
>> i need to uncomment this statement :
>>
>> # 'Mirroring',
>>
>> in gitolite.rc .
>>
>> The problem is that 'Mirroring' contains quotes.
>> - { regexp: '^(\s*)#? *(\'Mirroring,\')', line: "'Mirroring'," }
>>
>> when i run the task containing this regexp i get this syntax error:
>>
>> The offending line appears to be:
>>
>> - { regexp: '^(\s*)#? *(\'Mirroring,\')", line: "'Mirroring',' }
>> ^ here
>>
>>
--
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/2ffd37aa-a566-4abd-96db-b8a2353accaa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.