Files
homelab/ansible/playbooks/set_hostname.yml
2025-09-15 22:27:42 -05:00

17 lines
353 B
YAML

---
- name: Set hostname of VM
hosts: all
gather_facts: false
tasks:
- name: Set hostname of VM
become: true
delegate_to: "{{ inventory_hostname }}"
ansible.builtin.hostname:
name: "{{ hostname }}"
- name: Set timezone to US/Central
become: true
community.general.timezone:
name: US/Central