Add CentOS (#12)

* Add CentOS 7

* Fix rawhide boot

* Test locale versions
This commit is contained in:
Greg Hellings
2022-06-22 10:00:04 -05:00
committed by GitHub
parent 291ebbf82c
commit 0a3832d2c4
34 changed files with 255 additions and 24 deletions
+5 -3
View File
@@ -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