v0.2.3 another fix for the locale_config role...
This commit is contained in:
@@ -8,7 +8,7 @@ namespace: dede
|
|||||||
name: common
|
name: common
|
||||||
|
|
||||||
# The version of the collection. Must be compatible with semantic versioning
|
# 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
|
# The path to the Markdown (.md) readme file. This path is relative to the root of the collection
|
||||||
readme: README.md
|
readme: README.md
|
||||||
|
|||||||
@@ -21,11 +21,13 @@
|
|||||||
ansible.builtin.command:
|
ansible.builtin.command:
|
||||||
cmd: localectl status
|
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 }}'
|
- name: set locale to '{{ locale_config_locale }}'
|
||||||
become: true
|
become: true
|
||||||
changed_when: locale_lang != locale_config_locale
|
changed_when: locale_lang != locale_config_locale
|
||||||
vars:
|
|
||||||
locale_lang: "{{ locale_status.stdout | regex_search('LANG=([^\n]+)', '\\1') | first }}"
|
|
||||||
ansible.builtin.command:
|
ansible.builtin.command:
|
||||||
cmd: localectl set-locale LANG={{ locale_config_locale }}
|
cmd: localectl set-locale LANG={{ locale_config_locale }}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user