Skip to content

Instantly share code, notes, and snippets.

@aussielunix
Last active August 29, 2015 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aussielunix/1aa07042df4e0cb0924e to your computer and use it in GitHub Desktop.
Save aussielunix/1aa07042df4e0cb0924e to your computer and use it in GitHub Desktop.
Ansible play for fixing locale on Ubuntu
---
- 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
# {{ ansible_managed }}
LANG="{{ locale }}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment