system/tasks/locales.yml
vincent 1419eaa003
All checks were successful
continuous-integration/drone/push Build is passing
style: correct ansible lint
2022-12-10 20:25:54 +01:00

31 lines
667 B
YAML

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