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}}"