fix: update config for london-a for new proxmox install

This commit is contained in:
Rasmus Wejlgaard 2026-05-09 18:58:24 +01:00
parent 51efda6053
commit d9c6228682
5 changed files with 39 additions and 20 deletions

View file

@ -74,24 +74,12 @@
- role: systemd_services - role: systemd_services
- role: mariadb - role: mariadb
# london-a: Cockpit VM host (Debian) # london-a: Proxmox VE hypervisor
- name: "Stage 4f: Cockpit VM host (london-a)" - name: "Stage 4f: Proxmox VE (london-a)"
hosts: london-a hosts: london-a
tags: [services, cockpit] tags: [services, proxmox]
tasks: roles:
- name: Install cockpit and cockpit-machines - role: proxmox_ve
ansible.builtin.apt:
name:
- cockpit
- cockpit-machines
state: present
update_cache: true
- name: Enable and start cockpit
ansible.builtin.service:
name: cockpit
state: started
enabled: true
# ────────────────────────────────────────────── # ──────────────────────────────────────────────
# Stage 4g: ZFS scrub scheduling — zfs_hosts # Stage 4g: ZFS scrub scheduling — zfs_hosts

View file

@ -1,5 +1,5 @@
--- ---
host_role: vm-host host_role: proxmox-ve
host_description: "VM host (Cockpit + KVM)" host_description: "Proxmox VE hypervisor"
host_location: "London" host_location: "London"
ansible_python_interpreter: /usr/bin/python3 ansible_python_interpreter: /usr/bin/python3

View file

@ -3,7 +3,7 @@
[linux] [linux]
helsinki-a ansible_host=100.67.6.27 helsinki-a ansible_host=100.67.6.27
london-a ansible_host=100.90.111.19 london-a ansible_host=100.122.180.98
london-b ansible_host=100.84.65.101 london-b ansible_host=100.84.65.101
london-c ansible_host=100.123.72.87 london-c ansible_host=100.123.72.87
copenhagen-a ansible_host=100.89.206.60 copenhagen-a ansible_host=100.89.206.60

View file

@ -0,0 +1,4 @@
---
- name: Update apt cache
ansible.builtin.apt:
update_cache: true

View file

@ -0,0 +1,27 @@
---
# Configure Proxmox VE apt sources for the no-subscription tier.
# Removes the enterprise repo (requires paid subscription) and enables
# the free no-subscription repo so apt update works without credentials.
- name: Remove PVE enterprise apt source
ansible.builtin.file:
path: /etc/apt/sources.list.d/pve-enterprise.list
state: absent
- name: Remove Ceph enterprise apt source
ansible.builtin.file:
path: /etc/apt/sources.list.d/ceph.list
state: absent
- name: Add PVE no-subscription apt source
ansible.builtin.copy:
dest: /etc/apt/sources.list.d/pve-no-subscription.list
content: "deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription\n"
owner: root
group: root
mode: '0644'
notify: Update apt cache
- name: Update apt cache
ansible.builtin.apt:
update_cache: true