diff --git a/galaxy.yml b/galaxy.yml index fda8fe9..4fd0a1b 100644 --- a/galaxy.yml +++ b/galaxy.yml @@ -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 diff --git a/roles/locale_config/tasks/main.yml b/roles/locale_config/tasks/main.yml index f9f9d54..d750518 100644 --- a/roles/locale_config/tasks/main.yml +++ b/roles/locale_config/tasks/main.yml @@ -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 }}