system/tasks/locales.yml
2022-02-13 09:42:01 +01:00

31 lines
601 B
YAML

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