v0.2.3 another fix for the locale_config role...

This commit is contained in:
2024-12-29 02:18:39 +01:00
parent 0a0b0fc096
commit 9f5295310f
2 changed files with 5 additions and 3 deletions

View File

@@ -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

View File

@@ -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 }}