system/tasks/locales.yml
2018-12-02 21:03:03 +01:00

23 lines
539 B
YAML

---
- name: Set keymap
copy: content="KEYMAP={{ arch_base_keymap }}\n" dest=/etc/vconsole.conf
notify: Update keymap
become: yes
- name: Generate locales
locale_gen:
name: "{{ item }}"
state: present
with_items: "{{ arch_base_locales }}"
become: yes
- name: Set locale
lineinfile: dest=/etc/locale.conf line="LANG={{ arch_base_locale }}" regexp="^LANG=" create=yes
become: yes
- name: Set timezone
become: yes
command: timedatectl set-timezone {{ arch_base_timezone }}
args:
creates: /etc/localtime