iter0 installing proxmox on top of debian

This commit is contained in:
Ibrahim Mkusa 2024-10-05 12:15:57 -04:00
parent 3f6a140c64
commit 04c999f72b
2 changed files with 15 additions and 1 deletions

View File

@ -36,7 +36,7 @@
ansible.builtin.lineinfile: ansible.builtin.lineinfile:
path: /etc/hosts path: /etc/hosts
regexp: '^127.0.0.1' regexp: '^127.0.0.1'
line: "127.0.0.1 {{hostname}}" line: "127.0.0.1 {{hostname}} localhost"
- name: Run the foreman installer - name: Run the foreman installer

View File

@ -0,0 +1,14 @@
---
- name: This installs proxmox on a debian bookworm(12.5)
hosts: localhost
become: yes
vars:
ip_address: 192.168.2.116
domain_name: baxter.homelab.local
hostname: baxter
tasks:
- name: Ensure new proxmox host has a valid entry in /etc/hosts
ansible.builtin.lineinfile:
path: /etc/hosts
regexp: "^{{ip_address}}"
line: "{{ip_address}} {{domain_name}} {{hostname}}"