From c4fff9423b18d1be450cd5986be0affc44b30682 Mon Sep 17 00:00:00 2001 From: Frank Agerholm Date: Fri, 8 Mar 2024 13:43:26 +0100 Subject: [PATCH] Playbook for hostname configuration --- os_set_hostname.yml | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 os_set_hostname.yml diff --git a/os_set_hostname.yml b/os_set_hostname.yml new file mode 100644 index 0000000..7186b61 --- /dev/null +++ b/os_set_hostname.yml @@ -0,0 +1,9 @@ +--- +- name: Configure Node name + hosts: all + gather_facts: false + become: true + tasks: + - name: Set Hostname + ansible.builtin.hostname: + name: "{{ inventory_hostname }}"