Compare commits
No commits in common. "4f90405092869d4a497b389480079f7382727526" and "d97b0f5712918d8584cd2d2d6e99f8605711ec2e" have entirely different histories.
4f90405092
...
d97b0f5712
21
hosts
21
hosts
|
@ -23,8 +23,6 @@ all:
|
||||||
vfio_pci_ids:
|
vfio_pci_ids:
|
||||||
- '1002:731f' # Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 [Radeon RX 5600 OEM/5600 XT / 5700/5700 XT]
|
- '1002:731f' # Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 [Radeon RX 5600 OEM/5600 XT / 5700/5700 XT]
|
||||||
- '1002:ab38' # Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 HDMI Audio
|
- '1002:ab38' # Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 HDMI Audio
|
||||||
- '10de:13f1' # VGA compatible controller [0300]: NVIDIA Corporation GM204GL [Quadro M4000]
|
|
||||||
- '10de:0fbb' # Audio device [0403]: NVIDIA Corporation GM204 High Definition Audio Controller
|
|
||||||
bastion:
|
bastion:
|
||||||
hosts:
|
hosts:
|
||||||
bastion:
|
bastion:
|
||||||
|
@ -48,19 +46,13 @@ all:
|
||||||
name: jirost
|
name: jirost
|
||||||
level: 4
|
level: 4
|
||||||
home-assistant:
|
home-assistant:
|
||||||
# hosts:
|
|
||||||
# home-assistant:
|
|
||||||
# ansible_host: 192.168.31.20
|
|
||||||
cups:
|
|
||||||
# hosts:
|
|
||||||
# cups:
|
|
||||||
# ansible_host: cups.local
|
|
||||||
usbip:
|
|
||||||
hosts:
|
hosts:
|
||||||
usbip:
|
home-assistant:
|
||||||
ansible_host: 192.168.20.33
|
ansible_host: 192.168.31.20
|
||||||
exposed_usb_devices:
|
cups:
|
||||||
- 2-1
|
hosts:
|
||||||
|
cups:
|
||||||
|
ansible_host: cups.local
|
||||||
k3s:
|
k3s:
|
||||||
children:
|
children:
|
||||||
k3s-server:
|
k3s-server:
|
||||||
|
@ -101,7 +93,6 @@ all:
|
||||||
minecraft-server:
|
minecraft-server:
|
||||||
home-assistant:
|
home-assistant:
|
||||||
cups:
|
cups:
|
||||||
usbip:
|
|
||||||
vars:
|
vars:
|
||||||
ansible_user: ansible
|
ansible_user: ansible
|
||||||
ansible_password: !vault |
|
ansible_password: !vault |
|
||||||
|
|
|
@ -48,8 +48,4 @@
|
||||||
|
|
||||||
- hosts: cups
|
- hosts: cups
|
||||||
roles:
|
roles:
|
||||||
- cups
|
- cups
|
||||||
|
|
||||||
- hosts: usbip
|
|
||||||
roles:
|
|
||||||
- usbip
|
|
|
@ -1,2 +1 @@
|
||||||
platform: lxc
|
platform: lxc
|
||||||
nvidia_driver_branch: 550
|
|
|
@ -7,24 +7,3 @@
|
||||||
group: root
|
group: root
|
||||||
mode: 0755
|
mode: 0755
|
||||||
notify: reboot
|
notify: reboot
|
||||||
|
|
||||||
# Begin nvidia
|
|
||||||
# https://dev.to/mweibel/add-nvidia-gpu-support-to-k3s-with-containerd-4j17
|
|
||||||
- name: Download nvidia repository gpg key
|
|
||||||
get_url:
|
|
||||||
url: https://nvidia.github.io/libnvidia-container/gpgkey
|
|
||||||
dest: /usr/share/keyrings/nvidia-container-toolkit-keyring.asc
|
|
||||||
|
|
||||||
- name: Add nvidia repository
|
|
||||||
apt_repository:
|
|
||||||
repo: deb [signed-by=/usr/share/keyrings/nvidia-container-toolkit-keyring.asc] https://nvidia.github.io/libnvidia-container/stable/deb/$(ARCH) /
|
|
||||||
|
|
||||||
- name: Install nvidia drivers and nvidia container toolkit
|
|
||||||
apt:
|
|
||||||
update_cache: true
|
|
||||||
name:
|
|
||||||
- linux-modules-nvidia-{{ nvidia_driver_branch }}-server-generic
|
|
||||||
- nvidia-utils-{{ nvidia_driver_branch }}-server
|
|
||||||
- nvidia-container-toolkit
|
|
||||||
notify: reboot
|
|
||||||
# End nvidia
|
|
|
@ -1 +1 @@
|
||||||
deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription
|
deb http://download.proxmox.com/debian/pve bullseye pve-no-subscription
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
exposed_usb_devices: []
|
|
|
@ -1,15 +0,0 @@
|
||||||
[Unit]
|
|
||||||
Description=USB-IP Binding on bus id %I
|
|
||||||
After=network-online.target usbipd.service
|
|
||||||
Wants=network-online.target
|
|
||||||
Requires=usbipd.service
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=simple
|
|
||||||
ExecStart=/usr/bin/usbip bind -b %i
|
|
||||||
RemainAfterExit=yes
|
|
||||||
ExecStop=/usr/bin/usbip unbind -b %i
|
|
||||||
Restart=on-failure
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
|
@ -1,10 +0,0 @@
|
||||||
[Unit]
|
|
||||||
Description=USB/IP server
|
|
||||||
After=network.target
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
ExecStartPre=/usr/sbin/modprobe usbip-host
|
|
||||||
ExecStart=/usr/bin/usbipd
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
|
@ -1,31 +0,0 @@
|
||||||
- name: Install linux-tools-generic
|
|
||||||
apt:
|
|
||||||
update_cache: true
|
|
||||||
name:
|
|
||||||
- linux-tools-generic
|
|
||||||
|
|
||||||
- name: Install usbip systemd unit
|
|
||||||
copy:
|
|
||||||
src: usbipd.service
|
|
||||||
dest: /etc/systemd/system/usbipd.service
|
|
||||||
mode: 0644
|
|
||||||
register: copy_usbipd_unit
|
|
||||||
|
|
||||||
- name: Install usbip-bind systemd unit
|
|
||||||
copy:
|
|
||||||
src: usbip-bind@.service
|
|
||||||
dest: /etc/systemd/system/usbip-bind@.service
|
|
||||||
mode: 0644
|
|
||||||
register: copy_usbip_bind_unit
|
|
||||||
|
|
||||||
- name: Reload systemd
|
|
||||||
systemd:
|
|
||||||
daemon_reload: true
|
|
||||||
when: copy_usbipd_unit.changed or copy_usbip_bind_unit.changed
|
|
||||||
|
|
||||||
- name: Enable usbip units
|
|
||||||
with_items: "{{ exposed_usb_devices }}"
|
|
||||||
systemd:
|
|
||||||
name: "usbip-bind@{{ item }}.service"
|
|
||||||
state: started
|
|
||||||
enabled: true
|
|
Loading…
Reference in New Issue