"However I have confirmed that the locales package is indeed installed."
Is it installed on the remote node? That's where it's needed. On Thu, Apr 24, 2014 at 5:16 PM, ayounggun <[email protected]> wrote: > Hi all > > Can anyone see what I'm doing wrong? I'm trying to generate and set the > system's locale with the following tasks against ubuntu server 14.04. > > *tasks* > - name: install the locales package > apt: pkg=locales state=present > > - name: ensure the locale exists > locale_gen: name={{ locale }} state=present > > - name: set the locale > command: /usr/sbin/update-locale LANG={{ locale }} --reset > > *output* > msg: /etc/locale.gen and /var/lib/locales/supported.d/local are missing. > Is the package "locales" installed? > > However I have confirmed that the locales package is indeed installed. > > Also if I don't use the locale_gen: module everything works fine. > > *tasks* > - name: install the locales package > apt: pkg=locales state=present > > - name: ensure the locale exists > command: /usr/sbin/locale-gen {{ locale }} > > - name: set the locale > command: /usr/sbin/update-locale LANG={{ locale }} --reset > > *output* > changed: [vps03.fqdn.com] => {"changed": true, "cmd": > ["/usr/sbin/locale-gen", "en_GB.UTF-8"], "delta": "0:00:02.105356", "end": > "2014-04-25 01:03:10.600058", "item": "", "rc": 0, "start": "2014-04-25 > 01:03:08.494702", "stderr": "", "stdout": "Generating locales...\n > en_GB.UTF-8... done\nGeneration complete."} > > Thanks for the help > > -- > 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/644eaf13-e972-4ee7-9998-d154f9ad4898%40googlegroups.com<https://groups.google.com/d/msgid/ansible-project/644eaf13-e972-4ee7-9998-d154f9ad4898%40googlegroups.com?utm_medium=email&utm_source=footer> > . > 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/CA%2BnsWgxXXU1MPye0cFmxm8kLD6ChUy%3DPSeZqM%2BX1F01KcFpbLg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
