From 04c999f72bc2447f3970397a0909b59202b06ac9 Mon Sep 17 00:00:00 2001 From: Ibrahim Mkusa Date: Sat, 5 Oct 2024 12:15:57 -0400 Subject: [PATCH] iter0 installing proxmox on top of debian --- playbooks/foreman/install_foreman.yml | 2 +- playbooks/proxmox/install_on_debian.yml | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 playbooks/proxmox/install_on_debian.yml diff --git a/playbooks/foreman/install_foreman.yml b/playbooks/foreman/install_foreman.yml index a591c4e..e8d0f9f 100644 --- a/playbooks/foreman/install_foreman.yml +++ b/playbooks/foreman/install_foreman.yml @@ -36,7 +36,7 @@ ansible.builtin.lineinfile: path: /etc/hosts regexp: '^127.0.0.1' - line: "127.0.0.1 {{hostname}}" + line: "127.0.0.1 {{hostname}} localhost" - name: Run the foreman installer diff --git a/playbooks/proxmox/install_on_debian.yml b/playbooks/proxmox/install_on_debian.yml new file mode 100644 index 0000000..82825de --- /dev/null +++ b/playbooks/proxmox/install_on_debian.yml @@ -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}}"