Skip to content

Commit

Permalink
Removed Archlinux template task as @felixfontein suggested
Browse files Browse the repository at this point in the history
Signed-off-by: Konstantin Shalygin <k0ste@k0ste.ru>
  • Loading branch information
k0ste committed Feb 21, 2025
1 parent 15965c9 commit 1f5695e
Showing 1 changed file with 11 additions and 17 deletions.
28 changes: 11 additions & 17 deletions tests/integration/targets/locale_gen/tasks/non_debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,31 +8,25 @@
when:
- ansible_pkg_mgr == 'yum'

- name: "Prepare locale packages"
block:
- name: "Install locale packages for RedHat"
ansible.builtin.dnf:
name:
- "glibc-langpack-pl"
- "glibc-langpack-en"
state: "present"
when:
- "ansible_os_family == 'RedHat'"
- name: "Install locale packages for Archlinux"
community.general.pacman:
name: "glibc-locales"
state: "present"
when:
- "ansible_os_family == 'Archlinux'"
- name: "Install locale packages for RedHat"
ansible.builtin.dnf:
name:
- "glibc-langpack-pl"
- "glibc-langpack-en"
state: "present"
when:
- "ansible_os_family == 'RedHat'"

- name: "Prepare locale.gen file for RedHat or Archlinux"
- name: "Prepare locale.gen file for RedHat"
ansible.builtin.template:
src: "locale_gen.j2"
dest: "/etc/locale.gen"
owner: "root"
group: "root"
mode: "0644"
force: true
when:
- "ansible_os_family == 'RedHat'"

- name: "Check for locale that pack are not installed"
locale_gen:
Expand Down

0 comments on commit 1f5695e

Please sign in to comment.