Playbook for hostname configuration

This commit is contained in:
Frank Agerholm 2024-03-08 13:43:26 +01:00
commit c4fff9423b
No known key found for this signature in database

9
os_set_hostname.yml Normal file
View file

@ -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 }}"