# Create locale-gen using ansible

**URL:** <https://forum.ansible.com/t/create-locale-gen-using-ansible/24309>\
**Category:** Ansible Project\
**Created:** [April 25, 2017, 4:39pm UTC](https://forum.ansible.com/t/create-locale-gen-using-ansible/24309 "2017-04-25T16:39:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Krish\_Puvi](https://avatars.discourse-cdn.com/v4/letter/k/c2a13f/32.png) [@Krish\_Puvi](https://forum.ansible.com/u/Krish_Puvi)\
**Post date:** [April 25, 2017, 4:39pm UTC](https://forum.ansible.com/t/create-locale-gen-using-ansible/24309/1 "2017-04-25T16:39:24Z")

</div>

Hi,

I’m trying to install local-gen and point it to en\_GB.UTF-8. Does anyone know how to do this please?

> ```auto
> - locale_gen:
> name: de_CH.UTF-8
> state: present
> 
> ```

But I got the following error,  
efatal: [127.0.0.1]: FAILED! =\> {“changed”: false, “failed”: true, “msg”: “/etc/locale.gen and /var/lib/locales/supported.d/local are missing. Is the package "locales" installed?”}e

Thanks

---

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [April 27, 2017, 5:16pm UTC](https://forum.ansible.com/t/create-locale-gen-using-ansible/24309/2 "2017-04-27T17:16:13Z")

</div>

Please read the error that you pasted.

Also, you copy/pasted the documentation example which is for a different locale?

Dick
