system/tasks/locales.yml

31 lines
601 B
YAML
Raw Normal View History

2018-12-02 20:03:03 +00:00
---
- name: Set keymap
2022-02-13 08:40:15 +00:00
copy:
content: "KEYMAP={{ arch_base_keymap }}\n"
dest: /etc/vconsole.conf
mode: 0644
2018-12-02 20:03:03 +00:00
notify: Update keymap
2022-02-13 08:40:15 +00:00
become: true
2018-12-02 20:03:03 +00:00
- name: Generate locales
2022-02-13 08:40:15 +00:00
locale_gen:
2018-12-02 20:03:03 +00:00
name: "{{ item }}"
state: present
with_items: "{{ arch_base_locales }}"
2022-02-13 08:40:15 +00:00
become: true
2018-12-02 20:03:03 +00:00
- name: Set locale
2022-02-13 08:40:15 +00:00
lineinfile:
dest: /etc/locale.conf
line: "LANG={{ arch_base_locale }}"
regexp: "^LANG="
create: true
mode: 0644
become: true
2018-12-02 20:03:03 +00:00
- name: Set timezone
2022-02-13 08:40:15 +00:00
become: true
2018-12-02 20:03:03 +00:00
command: timedatectl set-timezone {{ arch_base_timezone }}
args:
creates: /etc/localtime