1
我在other question中描述的流浪区域上遇到了问题。如何在全局范围内设置shell变量
为了解决这个问题,我需要设置环境变量:
export LC_ALL="en_US.UTF-8"
有没有办法做到这一点全球范围内为剧本?
我在other question中描述的流浪区域上遇到了问题。如何在全局范围内设置shell变量
为了解决这个问题,我需要设置环境变量:
export LC_ALL="en_US.UTF-8"
有没有办法做到这一点全球范围内为剧本?
我遇到了与Postgres和Vagrant和Ansible相同的问题。这是我解决它的方法。
- name: dev locale
action: command sudo update-locale LC_ALL=en_US.UTF-8
- name: set default locale
sudo: yes
lineinfile: dest=/etc/default/locale
regexp="LC_ALL"
line="LC_ALL=\"en_US.UTF-8\""
是的,command sudo
行是奇怪的。但它的工作。
我需要提一下,[ansible module locale_gen](http://docs.ansible.com/ansible/locale_gen_module.html)不适用于我(debian 8)。 – michabbb 2015-12-29 01:48:53
@michabbb确保它被报告 - [这是问题](https://github.com/ansible/ansible-modules-extras/issues/823)? – tedder42 2015-12-29 01:52:50
我的区域设置没有空格,所以我想这是另一个问题。 – michabbb 2015-12-29 02:02:02