feat: Added k3s, metallb, tried adding traefik

This commit is contained in:
Lino Silva
2022-11-15 09:35:05 +00:00
parent f783d35513
commit 645dacdca4
47 changed files with 49105 additions and 196 deletions
-56
View File
@@ -1,56 +0,0 @@
---
- name: Create LXC for frigate
hosts: localhost
gather_facts: yes
tasks:
- name: Stop container
community.general.proxmox:
vmid: 200
api_user: root@pam
api_password: {{ proxmox_api_password }}
api_host: 10.0.2.2
state: stopped
ignore_errors: yes
- name: Remove container
community.general.proxmox:
vmid: 200
api_user: root@pam
api_password: {{ proxmox_api_password }}
api_host: 10.0.2.2
state: absent
ignore_errors: yes
- name: Create container
community.general.proxmox:
vmid: 200
node: epona
api_user: root@pam
api_password: {{ proxmox_api_password }}
api_host: 10.0.2.2
password: {{ lxc_password }}
hostname: frigate
ostemplate: "hyrule-8tb-nfs:vztmpl/debian-11-standard_11.3-1_amd64.tar.zst"
netif: "{'net0':'name=eth0,\
gw=10.0.0.1,\
ip=10.0.2.14/21,\
hwaddr=62:67:fc:7a:58:01,\
bridge=vmbr0'}"
cores: "2"
memory: "2048"
unprivileged: no
swap: 0
searchdomain: "home"
onboot: 1
disk: local-lvm:8
mounts: '{"mp0":"hyrule-8tb-nfs:500,mp=/media/frigate"}'
mounts: '{"mp1":"/dev/bus/usb,mp=/dev/bus/usb"}'
force: yes
- name: Start deployment
community.general.proxmox:
vmid: 200
api_user: root@pam
api_password: {{ proxmox_api_password }}
api_host: 10.0.2.2
state: started