v0.2.3 another fix for the locale_config role...
This commit is contained in:
@@ -21,11 +21,13 @@
|
||||
ansible.builtin.command:
|
||||
cmd: localectl status
|
||||
|
||||
- name: set fact
|
||||
ansible.builtin.set_fact:
|
||||
locale_lang: "{{ locale_status.stdout | regex_search('LANG=([^\n]+)', '\\1') | first }}"
|
||||
|
||||
- name: set locale to '{{ locale_config_locale }}'
|
||||
become: true
|
||||
changed_when: locale_lang != locale_config_locale
|
||||
vars:
|
||||
locale_lang: "{{ locale_status.stdout | regex_search('LANG=([^\n]+)', '\\1') | first }}"
|
||||
ansible.builtin.command:
|
||||
cmd: localectl set-locale LANG={{ locale_config_locale }}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user