2018-12-02 20:03:03 +00:00
|
|
|
---
|
|
|
|
- name: Set keymap
|
2022-12-10 17:51:03 +00:00
|
|
|
ansible.builtin.copy:
|
2022-02-13 08:40:15 +00:00
|
|
|
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-12-10 17:51:03 +00:00
|
|
|
community.general.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-12-10 17:51:03 +00:00
|
|
|
ansible.builtin.lineinfile:
|
2022-02-13 08:40:15 +00:00
|
|
|
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
|
2022-12-10 17:51:03 +00:00
|
|
|
ansible.builtin.command: timedatectl set-timezone {{ arch_base_timezone }}
|
2018-12-02 20:03:03 +00:00
|
|
|
args:
|
|
|
|
creates: /etc/localtime
|