feat: Frigate

Co-authored-by: Lino Silva <lino.silva@farfetch.com>
Reviewed-on: #1
This commit was merged in pull request #1.
This commit is contained in:
lino
2022-11-25 23:29:38 +00:00
parent 5075a3e697
commit 508e433bab
27 changed files with 370 additions and 52 deletions
+29
View File
@@ -0,0 +1,29 @@
---
- name: Stop containers
community.general.proxmox:
vmid: "{{ hostvars[item]['k3s_vmid'] }}"
api_user: root@pam
api_password: "{{ proxmox_api_password }}"
api_host: 10.0.2.2
state: stopped
loop: "{{ groups['baremetal'] }}"
ignore_errors: true
timeout: 90
- name: Remove containers
community.general.proxmox:
vmid: "{{ hostvars[item]['k3s_vmid'] }}"
api_user: root@pam
api_password: "{{ proxmox_api_password }}"
api_host: "{{ hostvars[item]['ip_addr'] }}"
state: absent
loop: "{{ groups['baremetal'] }}"
ignore_errors: true
timeout: 90
- name: Remove .ssh/known_hosts lines
ansible.builtin.lineinfile:
path: /Users/lino.silva/.ssh/known_hosts
state: absent
regexp: '^{{ hostvars[item]["k3s_lxc_host"] }}'
loop: "{{ groups['baremetal'] }}"