From f52725295fc14bfffb7ae664f6629d75ebb76d60 Mon Sep 17 00:00:00 2001 From: greg Date: Fri, 23 Jan 2026 10:51:49 +0100 Subject: [PATCH] add keyboard task --- README.md | 3 ++- roles/trixie_postinstall/files/keyboard | 10 ++++++++++ roles/trixie_postinstall/tasks/keyboard.yml | 15 +++++++++++++++ roles/trixie_postinstall/tasks/main.yml | 1 + 4 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 roles/trixie_postinstall/files/keyboard create mode 100644 roles/trixie_postinstall/tasks/keyboard.yml diff --git a/README.md b/README.md index 97568aa..9aa51ed 100644 --- a/README.md +++ b/README.md @@ -36,13 +36,14 @@ ansible-playbook playbooks/install.yml --ask-become-pass --tags ollama - [x] dns - [x] base_tools - [x] firefox (debug ublock origin installed but ineffective) !!! +- [ ] cp keyboard file - [ ] apps: - [ ] freetube - [ ] element - [ ] vscodium - [ ] gnome - [ ] -- [ ] libreoffice (debug .config/libreoffice inexistent -> need first launch) +- [ ] libreoffice (debug .config/libreoffice inexistent -> need mkdir first) ## To test diff --git a/roles/trixie_postinstall/files/keyboard b/roles/trixie_postinstall/files/keyboard new file mode 100644 index 0000000..ff2f85e --- /dev/null +++ b/roles/trixie_postinstall/files/keyboard @@ -0,0 +1,10 @@ +# KEYBOARD CONFIGURATION FILE + +# Consult the keyboard(5) manual page. + +XKBMODEL="pc105" +XKBLAYOUT="fr" +XKBVARIANT="latin9" +XKBOPTIONS="" + +BACKSPACE="guess" \ No newline at end of file diff --git a/roles/trixie_postinstall/tasks/keyboard.yml b/roles/trixie_postinstall/tasks/keyboard.yml new file mode 100644 index 0000000..17dcf1f --- /dev/null +++ b/roles/trixie_postinstall/tasks/keyboard.yml @@ -0,0 +1,15 @@ +--- +- name: Installer la configuration clavier + ansible.builtin.copy: + src: files/keyboard + dest: /etc/default/keyboard + owner: root + group: root + mode: "0644" + +- name: Définir LANG=fr_FR.UTF-8 dans /etc/default/locale + ansible.builtin.lineinfile: + path: /etc/default/locale + line: "LANG=fr_FR.UTF-8" + create: true + state: present diff --git a/roles/trixie_postinstall/tasks/main.yml b/roles/trixie_postinstall/tasks/main.yml index f9f3264..fc4fb75 100644 --- a/roles/trixie_postinstall/tasks/main.yml +++ b/roles/trixie_postinstall/tasks/main.yml @@ -1,4 +1,5 @@ --- +- import_tasks: keyboard.yml - import_tasks: apt.yml - import_tasks: base_tools.yml - import_tasks: dns.yml