Files
vms/ansible/roles/locale/tasks/main.yml
T
Greg HellingsandGitHub 0a3832d2c4 Add CentOS (#12)
* Add CentOS 7

* Fix rawhide boot

* Test locale versions
2022-06-22 10:00:04 -05:00

12 lines
441 B
YAML

- name: update locale info
become: true
ansible.builtin.shell: |
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'] ) and
( ansible_facts['distribution_major_version'] is version('8', '<') )
changed_when: false