diff --git a/inventories/z9/hosts.yaml b/inventories/z9/hosts.yaml index 0dde922..13e2cc9 100644 --- a/inventories/z9/hosts.yaml +++ b/inventories/z9/hosts.yaml @@ -6,6 +6,11 @@ all: authoritative-dns: ansible_host: authoritative-dns.z9.ccchh.net ansible_user: chaos + thinkcccore0: + ansible_host: thinkcccore0.z9.ccchh.net +hypervisors: + hosts: + thinkcccore0: nginx_hosts: hosts: light: @@ -19,3 +24,6 @@ infrastructure_authorized_keys_hosts: hosts: light: authoritative-dns: +proxmox_vm_template_hosts: + hosts: + thinkcccore0: diff --git a/playbooks/deploy_hypervisor.yaml b/playbooks/deploy_hypervisor.yaml index 0739d35..4d3200f 100644 --- a/playbooks/deploy_hypervisor.yaml +++ b/playbooks/deploy_hypervisor.yaml @@ -1,6 +1,13 @@ - name: Ensure the VM template generation is set up hosts: proxmox_vm_template_hosts tasks: + - name: Ensure dependencies are present + ansible.builtin.apt: + name: + - git + - libguestfs-tools + become: true + - name: Ensure /usr/local/{lib,sbin} exist ansible.builtin.file: path: "{{ item }}"