home lab init

This commit is contained in:
plasmagoat 2025-06-03 23:07:46 +02:00
commit 7278922625
65 changed files with 27336 additions and 0 deletions

View file

@ -0,0 +1,40 @@
- name: Bootstrap Proxmox Server
hosts: proxmox
become: true
pre_tasks:
- name: Remove enterprise repository
ansible.builtin.apt_repository:
update_cache: false
repo: deb https://enterprise.proxmox.com/debian/pve bookworm pve-enterprise
state: absent
- name: Remove enterprise pbs repository
ansible.builtin.apt_repository:
update_cache: false
repo: deb https://enterprise.proxmox.com/debian/pbs bookworm InRelease
state: absent
- name: Remove enterprise ceph repository
ansible.builtin.apt_repository:
update_cache: false
repo: deb https://enterprise.proxmox.com/debian/ceph-quincy bookworm enterprise
state: absent
- name: Add community repository
ansible.builtin.apt_repository:
update_cache: true
repo: deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription
state: present
tasks:
- name: Ensure ethtool offload post-up is present for eno1
ansible.builtin.lineinfile:
path: /etc/network/interfaces
line: "\tpost-up ethtool -K eno2 tso off gso off"
insertafter: "^iface eno2 inet manual"
state: present
backup: yes
- import_tasks: ../tasks/packages.yml
# - import_tasks: ../tasks/locale.yml
# - import_tasks: ../tasks/keyboard.yml
# - import_tasks: ../tasks/users.yml
# - import_tasks: ../tasks/ssh.yml