From bccd836e3d453725f3ebaa31c5de3967d11ebc2e Mon Sep 17 00:00:00 2001 From: "Oleg \"Zmey!\" Vasiliev" Date: Thu, 5 Oct 2023 23:56:20 +0300 Subject: [PATCH] Add hostname configuration --- defaults/main.yml | 4 +++- tasks/main.yml | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/defaults/main.yml b/defaults/main.yml index e295a0b..3723e92 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -1,7 +1,8 @@ --- -# https://sourceware.org/glibc/wiki/Locales +common_hostname: "{{ ansible_hostname }}" +# https://sourceware.org/glibc/wiki/Locales system_locales: - en_US.UTF-8 UTF-8 @@ -32,6 +33,7 @@ pacman_ignorepkg: [] pacman_parallel_downloads: 2 common_packages: + - less - bash-completion - htop - nano diff --git a/tasks/main.yml b/tasks/main.yml index a7016e2..17ff1ee 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,5 +1,9 @@ --- +- name: Common | Set hostname + hostname: + name: "{{ common_hostname }}" + - name: Common | Set available locales template: src: locale.gen.j2