WIP: Various cleanups #83

Draft
jeltz wants to merge 9 commits from cleanup_no_ldap_for_servers into master
11 changed files with 26 additions and 18 deletions
Showing only changes of commit 7f6c36daaf - Show all commits

View file

@ -2,9 +2,13 @@
---
# Put a common configuration on all servers
- hosts: all,!unifi
vars:
locales_default: en_US.UTF-8
locales_additional:
- fr_FR.UTF-8
roles:
- baseconfig
- debian_common
- locales
- basesecurity
- ldap_client
- logrotate
- update_motd

View file

@ -39,21 +39,6 @@
dest: /etc/apt/sources.list
mode: 0644
# Patriotisme
- name: Ensure French UTF-8 locale exists
locale_gen:
name: fr_FR.UTF-8
state: present
# Fix LC_CTYPE="C"
- name: Select default locale
debconf:
name: locales
question: locales/default_environment_locale
value: fr_FR.UTF-8
vtype: select
notify: Reconfigure locales
# APT-List Changes : send email with changelog
- include_tasks: apt-listchanges.yml

View file

@ -0,0 +1,4 @@
---
locales_default: en_US.UTF-8
locales_additional: []
...

View file

@ -1,4 +1,4 @@
---
# Reconfigure locales when conf changes
- name: Reconfigure locales
command: dpkg-reconfigure locales -f noninteractive
...

View file

@ -0,0 +1,15 @@
---
- name: Install locales
locale_gen:
name: "{{ item }}"
state: present
loop: "{{ [locales_default] + locales_additional }}"
- name: Select default locale
debconf:
name: locales
question: locales/default_environment_locale
value: "{{ locales_default }}"
vtype: select
notify: Reconfigure locales
...