feat: Arr stack

This commit is contained in:
Lino Silva
2023-04-19 18:38:25 +01:00
parent c60e378f81
commit a375049e1e
20 changed files with 275 additions and 16 deletions
+34
View File
@@ -0,0 +1,34 @@
---
- name: Create container
community.general.proxmox:
vmid: 616
node: impa
api_user: root@pam
api_password: "{{ proxmox_api_password }}"
api_host: 10.0.2.2
password: "{{ lxc_password }}"
hostname: arr
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.25/21,\
hwaddr=cc:c6:cf:de:17:85,\
bridge=vmbr0'}"
cores: 2
memory: 4096
unprivileged: no
swap: 0
searchdomain: "home"
onboot: 1
features:
- nesting=1
- keyctl=1
mounts: '{
"mp0":"/mnt/8TB/Movies,mp=/movies",
"mp1":"/mnt/2TB/TVShows,mp=/tv",
"mp2":"/mnt/2TB/Music,mp=/music",
"mp3":"/mnt/8TB/uTorrent,mp=/downloads",
"mp4":"nvme:20,mp=/data,backup=1"
}'
disk: nvme:10
force: yes
+26
View File
@@ -0,0 +1,26 @@
---
- name: Stop container
community.general.proxmox:
vmid: "{{ vmid }}"
api_user: root@pam
api_password: "{{ proxmox_api_password }}"
api_host: 10.0.2.2
state: stopped
ignore_errors: true
timeout: 90
- name: Remove containers
community.general.proxmox:
vmid: "{{ vmid }}"
api_user: root@pam
api_password: "{{ proxmox_api_password }}"
api_host: 10.0.2.2
state: absent
ignore_errors: true
timeout: 90
- name: Remove .ssh/known_hosts lines
ansible.builtin.lineinfile:
path: /Users/lino.silva/.ssh/known_hosts
state: absent
regexp: "^10.0.2.25"
+8
View File
@@ -0,0 +1,8 @@
---
- name: Start deployments
community.general.proxmox:
vmid: "{{ vmid }}"
api_user: root@pam
api_password: "{{ proxmox_api_password }}"
api_host: 10.0.2.2
state: started