Changed DNS record creation to Ansible

This commit is contained in:
2025-07-08 23:27:46 -05:00
parent 2bce9c3f29
commit 8212a69802
8 changed files with 150 additions and 92 deletions

View File

@@ -0,0 +1,10 @@
---
- name: Create VM ID from IP address for Proxmox hosts
hosts: all
gather_facts: false
tasks:
- name: Set hostname of VM
delegate_to: "{{ inventory_hostname }}"
ansible.builtin.hostname:
name: "{{ hostname }}"