diff options
| author | Ahmed Abdelhalim <[email protected]> | 2025-09-02 21:36:46 +0200 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2025-09-02 21:36:46 +0200 |
| commit | 8dff233f49f8f55fa16267bd3367007b9346b6a6 (patch) | |
| tree | 71bb8a1aa034698cbf25dd7d080190c26e4d6f53 /roles/locales | |
| parent | 59293d1799706d5ea0fefe97431150a35a0ff08e (diff) | |
Fix linting issues
Diffstat (limited to 'roles/locales')
| -rw-r--r-- | roles/locales/tasks/main.yml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/roles/locales/tasks/main.yml b/roles/locales/tasks/main.yml index 8c534adb..8008ec93 100644 --- a/roles/locales/tasks/main.yml +++ b/roles/locales/tasks/main.yml @@ -11,12 +11,12 @@ - name: "Read locale.gen file" ansible.builtin.slurp: src: "/etc/locale.gen" - register: locale_gen_content + register: locales_content - name: "Validate locale entries exist in locale.gen" ansible.builtin.assert: that: - - "item in (locale_gen_content.content | b64decode)" + - "item in (locales_content.content | b64decode)" fail_msg: "Locale '{{ item }}' not found in /etc/locale.gen." with_items: "{{ locales }}" @@ -24,12 +24,12 @@ ansible.builtin.shell: | set -o pipefail locale -a | grep 'utf8$' | sed 's/.utf8$/.UTF-8 UTF-8/' - register: available_locales + register: locales_available changed_when: false - name: "Generate locales if missing" become: true - when: locales | difference(available_locales.stdout_lines) | length > 0 + when: locales | difference(locales_available.stdout_lines) | length > 0 block: - name: "Update locale.gen" ansible.builtin.lineinfile: |
