Add CentOS (#12)
* Add CentOS 7 * Fix rawhide boot * Test locale versions
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
driver:
|
||||
name: containers
|
||||
platforms:
|
||||
- name: test-centos7-locale
|
||||
image: centos:7
|
||||
@@ -0,0 +1,5 @@
|
||||
driver:
|
||||
name: containers
|
||||
platforms:
|
||||
- name: test-centos8-locale
|
||||
image: quay.io/centos/centos:stream8
|
||||
@@ -0,0 +1,5 @@
|
||||
driver:
|
||||
name: containers
|
||||
platforms:
|
||||
- name: test-centos9-locale
|
||||
image: quay.io/centos/centos:stream9
|
||||
@@ -0,0 +1,9 @@
|
||||
- hosts: all
|
||||
pre_tasks:
|
||||
- name: Install necessary packge
|
||||
become: true
|
||||
package:
|
||||
name: glibc-common
|
||||
state: present
|
||||
roles:
|
||||
- locale
|
||||
@@ -1,9 +1,11 @@
|
||||
- name: update locale info
|
||||
become: true
|
||||
ansible.builtin.shell: |
|
||||
set -eo pipefail
|
||||
localedef --list-archive | grep -a -v en_US.utf8 | xargs sudo localedef --delete-from-archive
|
||||
set -exo pipefail
|
||||
localedef --list-archive | ( grep -a -v en_US.utf8 || printf '' ) | xargs -r sudo localedef --delete-from-archive
|
||||
cp /usr/lib/locale/locale-archive{,.tmpl}
|
||||
build-locale-archive
|
||||
when: >
|
||||
ansible_facts['distribution'] in ['CentOS']
|
||||
( ansible_facts['distribution'] in ['CentOS'] ) and
|
||||
( ansible_facts['distribution_major_version'] is version('8', '<') )
|
||||
changed_when: false
|
||||
|
||||
Reference in New Issue
Block a user