Last active
August 29, 2015 14:21
-
-
Save aussielunix/1aa07042df4e0cb0924e to your computer and use it in GitHub Desktop.
Ansible play for fixing locale on Ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- name: locale | fixup Ubuntu's broken locale | |
hosts: all | |
sudo: yes | |
gather_facts: True | |
vars: | |
locale: en_AU.UTF-8 | |
tasks: | |
- name: locale | run localegen | |
locale_gen: name="{{ locale }}" state=present | |
- name: locale | fixup /etc/default/locale | |
template: | |
src=locale.j2 | |
dest=/etc/default/locale | |
owner=root | |
group=root | |
mode=0644 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# {{ ansible_managed }} | |
LANG="{{ locale }}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment