mirror of
https://github.com/aminnairi/dotfiles.git
synced 2026-11-13 12:19:09 +01:00
skipping the setting of the locale if it has already been set previously
This commit is contained in:
1 parent
9b105e9327
commit
22eeaff6f8
1 file changed
+7
-1
@@ -3,6 +3,12 @@
|
||||
community.general.locale_gen:
|
||||
name: en_US.UTF-8
|
||||
state: present
|
||||
- name: Get the current keymap
|
||||
shell: localectl status | grep "VC Keymap" | cut -d " " -f 7
|
||||
register: localectl_keymap_status_command
|
||||
ignore_errors: true
|
||||
changed_when: false
|
||||
- name: Set the keyboard keymap
|
||||
become: true
|
||||
command: localectl set-keymap us
|
||||
command: "localectl set-keymap {{ locale }}"
|
||||
when: 'localectl_keymap_status_command.stdout != locale'
|
||||
Reference in new issue
Block a user