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 54019cf
Showing 1 changed file with 10 additions and 16 deletions.
26 changes: 10 additions & 16 deletions tests/integration/targets/locale_gen/tasks/non_debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,14 @@
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"
ansible.builtin.template:
Expand All @@ -33,6 +25,8 @@
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 54019cf

Please sign in to comment.