Ansible remove accent

Hello :slight_smile:

I have a playbook that generates the creation of an AD account, it works very well.

Example:
The account of Toto PIERRE with the email address toto.pierre@labo.lab is created correctly.

The account of Médéric GOT with the email address médéric.got@labo.lab the samacount is created with an accent “é”, is there a method like CAPITALIZE or UPPER ect… which allows to remove the accent of the “é” by “e”?

Thanks in advance !

Translated with www.DeepL.com/Translator (free version)

Hello :slight_smile:

I have a playbook that generates the creation of an AD account, it works
very well.

... for a restricted input data set ...

Example:
The account of Toto PIERRE with the email address toto.pierre@labo.lab is
created correctly.

The account of Médéric GOT with the email address médéric.got@labo.lab the
samacount is created with an accent "Ă©", is there a method like CAPITALIZE
or UPPER ect... which allows to remove the accent of the "Ă©" by "e"?

I would suggest that it is not a good assumption that everybody's email
address is FirstName.LastName@Domain.TLD

I think you should be supplying two separate items of data to ansible for this
process:

1. The person's name
2. The person's email address

For example, what would your current system try to do with:

a) Marcus du Sautoy
b) Ed O'Brien
c) Madonna
d) John Smith (Sales) and John Smith (Development)
e) Tony Leung Chiu-wai (whose surname is Leung)

Antony.