v0.2.3 another fix for the locale_config role...
This commit is contained in:
@@ -8,7 +8,7 @@ namespace: dede
|
||||
name: common
|
||||
|
||||
# The version of the collection. Must be compatible with semantic versioning
|
||||
version: 0.2.2
|
||||
version: 0.2.3
|
||||
|
||||
# The path to the Markdown (.md) readme file. This path is relative to the root of the collection
|
||||
readme: README.md
|
||||
|
||||
@@ -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