Refs #8025 Resolv task moved to debian-base role - Review & refactor tasks from debian-base role defuser, install and locate

This commit is contained in:
Xavi Lleó 2024-10-07 12:06:19 +02:00
parent d6c51141bf
commit 606548db7e
7 changed files with 15 additions and 19 deletions

View File

@ -18,4 +18,3 @@
service:
name: nagios-nrpe-server
state: restarted

View File

@ -8,3 +8,9 @@
- bash-completion
- screen
- aptitude
- vim
- aptitude
- tree
- btop
- ncdu
- debconf-utils

View File

@ -1,15 +1,6 @@
- name: Enable locale languages
lineinfile:
dest: /etc/locale.gen
regexp: "{{item.regexp}}"
line: "{{item.line}}"
state: present
with_items:
- regexp: "^# es_ES.UTF-8 UTF-8"
line: "es_ES.UTF-8 UTF-8"
- regexp: "^# en_US.UTF-8 UTF-8"
line: "en_US.UTF-8 UTF-8"
- name: Generate locale
command: locale-gen
- name: Update locale
command: update-locale LANG=en_US.UTF-8
- name: Set to generate locales
debconf:
name: locales
question: locales/locales_to_be_generated
value: en_US.UTF-8 UTF-8, es_ES.UTF-8 UTF-8
vtype: multiselect

View File

@ -1,3 +1,5 @@
- import_tasks: resolv.yml
tags: resolv
- import_tasks: defuser.yml
tags: defuser
- import_tasks: install.yml

View File

@ -4,5 +4,3 @@
tags: sysctl
- import_tasks: apparmor.yml
tags: apparmor
- import_tasks: resolv.yml
tags: resolv