Files
ansible/roles/proxmox/tasks/04_configure_hosts.yaml
Tuan-Dat Tran 5a8c7f0248 feat(proxmox): add hosts config
Signed-off-by: Tuan-Dat Tran <tuan-dat.tran@tudattr.dev>
2026-02-28 11:30:58 +01:00

16 lines
513 B
YAML

---
- name: Configure /etc/hosts with Proxmox cluster nodes
ansible.builtin.blockinfile:
path: /etc/hosts
block: |
# Proxmox Cluster Nodes
192.168.20.12 aya01.seyshiro.de aya01
192.168.20.14 lulu.seyshiro.de lulu
192.168.20.28 inko01.seyshiro.de inko01
192.168.20.10 naruto01.seyshiro.de naruto01
192.168.20.9 mii01.seyshiro.de mii01
marker: "# {mark} ANSIBLE MANAGED BLOCK - PROXMOX CLUSTER NODES"
create: true
mode: "644"
when: is_proxmox_node | bool