From 4ec4adb906174a1371e2fb8a63b9e53159f7fe67 Mon Sep 17 00:00:00 2001 From: Nilstrieb <48135649+Nilstrieb@users.noreply.github.com> Date: Mon, 1 Jul 2024 20:51:53 +0200 Subject: [PATCH] hostname --- playbooks/basic-setup.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/playbooks/basic-setup.yml b/playbooks/basic-setup.yml index a76d7e5..812c746 100644 --- a/playbooks/basic-setup.yml +++ b/playbooks/basic-setup.yml @@ -3,6 +3,9 @@ hosts: all gather_facts: false tasks: + - name: Change hostname + ansible.builtin.hostname: + name: "{{ inventory_hostname }}" - name: apt update ansible.builtin.apt: update_cache: true