Assuming you're talking about the local /etc/passwd file, the user
module can handle the gecos field.

--Steve

On Tue, Mar 19, 2019 at 12:47 PM 'Mark Tovey - DSV' via Ansible
Project <[email protected]> wrote:
>
>
>
>     Thanks!
>
>
>
>
>
> --------------------------------------------------------------------------------------------------------------------------
>
> Mark Tovey - UNIX Engineer
>
> DSV | 110 N Marine Dr. | Bldg 1 | Portland | Oregon | 97217 | USA
>
> [email protected] | +1 503 222-5546
>
>
>
> From: 'Mark Tovey' via Ansible Project <[email protected]>
> Sent: Tuesday, March 19, 2019 10:03 AM
> To: Ansible Project <[email protected]>
> Subject: [ansible-project] replace module cannot crashes when encountering 
> Danish characters
>
>
>
>
>
>   I am working on a playbook to replace the comment field in a server's 
> password file.  I was trying to use the replace module to do this.  But it 
> began crashing on one server.  By elimination I was able to isolate the 
> problem to one user's account entry in the password file.  The user is Danish 
> and his name contains the minuscule character (small o with a slash through 
> it, hexadecimal f8).  If I replace that character with the 'o' character, the 
> replace module works fine, but if I put the minuscule charter back, it 
> crashes.  Interestingly, the lineinfile module does not have this problem, 
> only the replace module is affected.
>
>   The company I work for is based in Copenhagen, so this is going to be an 
> ongoing issue and I don't think I am going to be able to convince everyone to 
> spell their names differently, so the module needs to be repaired.  What is 
> the best way to submit a bug?  The version of Ansible we are currently using 
> is 2.7.5.
>
>     -Mark
>
> --
> You received this message because you are subscribed to a topic in the Google 
> Groups "Ansible Project" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/ansible-project/fpEQthkT6jE/unsubscribe.
> To unsubscribe from this group and all its topics, 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/7d0741ac-7079-47f4-85b1-31d41f6e3d37%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
> --
> 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/AM5PR0602MB27716124F8CBE7353FD9EAE69E400%40AM5PR0602MB2771.eurprd06.prod.outlook.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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/CAFbiokdqaasz%3D_dmq%2By9YNpoP1kP-wjVsX6QsYSOawRk1UaQ7Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to