system/tasks/locales.yml

23 lines
539 B
YAML
Raw Normal View History

2018-12-02 20:03:03 +00:00
---
- 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