Add set and reconfigure locales for postgresql
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Eric Morino 2019-11-14 15:56:41 +01:00
parent c15f8963e4
commit 9d5a272472
4 changed files with 26 additions and 0 deletions

View File

@ -10,3 +10,6 @@ postgresql_effective_cache_size: "{{ (ansible_memtotal_mb * 0.5) | int }}MB"
# PostgreSQL version
postgresql_version: '9.6'
#Set locales
locales_default: fr_FR.UTF-8

View File

@ -16,3 +16,6 @@
- name: Restart minifirewall
command: /etc/init.d/minifirewall restart
- name: reconfigure locales
command: dpkg-reconfigure -f noninteractive locales

View File

@ -0,0 +1,19 @@
---
- include_role:
name: remount-usr
- name: select locales to be generated
locale_gen:
name: "{{ item }}"
state: present
with_items:
- "fr_FR.UTF-8"
become: yes
notify: reconfigure locales
- name: set default locale
lineinfile:
dest: "/etc/default/locale"
regexp: "^LANG="
line: "LANG={{ locales_default }}"
notify: reconfigure locales

View File

@ -1,4 +1,5 @@
---
- include: locales.yml
- include: packages_jessie.yml
when: ansible_distribution_release == "jessie"