Changed DNS record creation to Ansible
This commit is contained in:
10
infra-config/playbooks/set_hostname.yml
Normal file
10
infra-config/playbooks/set_hostname.yml
Normal 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 }}"
|
||||
Reference in New Issue
Block a user