summaryrefslogtreecommitdiffstats
path: root/roles/locales/tasks/main.yml
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2025-09-02 22:27:04 +0200
committerAhmed Abdelhalim <[email protected]>2025-09-02 22:27:04 +0200
commitd043c2b3358d39ecc9870e0dd8ed7167faeca1c8 (patch)
tree8e9cdcc258278475cb73ce8fccdcf02cdfa6543f /roles/locales/tasks/main.yml
parent8dff233f49f8f55fa16267bd3367007b9346b6a6 (diff)
Fix CI failures and ignore intentionally changing tasks for idem test
Diffstat (limited to 'roles/locales/tasks/main.yml')
-rw-r--r--roles/locales/tasks/main.yml9
1 files changed, 7 insertions, 2 deletions
diff --git a/roles/locales/tasks/main.yml b/roles/locales/tasks/main.yml
index 8008ec93..cb8175bb 100644
--- a/roles/locales/tasks/main.yml
+++ b/roles/locales/tasks/main.yml
@@ -2,11 +2,14 @@
- name: "Include OS-specific variables"
ansible.builtin.include_vars: "{{ ansible_os_family | lower }}.yml"
-- name: "Ensure locales package is installed"
+- name: "Ensure locales dependencies are installed"
become: true
ansible.builtin.package:
- name: "{{ locales_pkg }}"
+ name: "{{ item }}"
state: "present"
+ with_items:
+ - "{{ locales_pkg }}"
+ - bash
- name: "Read locale.gen file"
ansible.builtin.slurp:
@@ -24,6 +27,8 @@
ansible.builtin.shell: |
set -o pipefail
locale -a | grep 'utf8$' | sed 's/.utf8$/.UTF-8 UTF-8/'
+ args:
+ executable: /bin/bash
register: locales_available
changed_when: false