From 310253a66131320833276c5b32dd9d2e53136357 Mon Sep 17 00:00:00 2001 From: kim Date: Wed, 17 Apr 2024 17:16:52 +0200 Subject: [PATCH] Add new task for hostname #248 --- tasks/config.yml | 8 ++++++-- tasks/main.yml | 6 +++--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/tasks/config.yml b/tasks/config.yml index 7cf0355..46a7d30 100644 --- a/tasks/config.yml +++ b/tasks/config.yml @@ -1,3 +1,8 @@ +- name: set hostname + hostname: + name: "{{ inventory_hostname }}" + use: debian + - name: copy base configs copy: src: etc/apt/apt.conf.d/20auto-upgrades @@ -17,5 +22,4 @@ - name: Ensure the DE locale exists community.general.locale_gen: name: de_DE.UTF-8 - state: present - + state: present \ No newline at end of file diff --git a/tasks/main.yml b/tasks/main.yml index 305cbfe..b73be33 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,12 +1,12 @@ - name: base config import_tasks: config.yml -- name: custom DNS servers - import_tasks: dns.yml - - name: install packages import_tasks: packages.yml +- name: custom DNS servers + import_tasks: dns.yml + - name: install ctop import_tasks: ctop.yml