chore(deps): update postgres docker tag to v17 - autoclosed #27

Closed
RenovateBot wants to merge 0 commits from renovate/postgres-17.x into master
39 changed files with 477 additions and 855 deletions

View File

@ -1,34 +0,0 @@
name: Deploy
on:
push:
branches:
- master
jobs:
deploy:
name: Prepare Build
runs-on: homelab
container: git.comprofix.com/mmckinnon/alpine-runner:latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Deploy containers
run: |
mkdir -p ~/.ssh
echo "${{ secrets.SSH_KNOWN_HOSTS }}" >> ~/.ssh/known_hosts
chmod 644 ~/.ssh/known_hosts
eval $(ssh-agent -s)
ssh-add <(echo "${{ secrets.SSH_PRIVATE_KEY }}")
echo "HOST *" > ~/.ssh/config
echo "StrictHostKeyChecking no" >> ~/.ssh/config
echo "${{ secrets.ANSIBLE_VAULT_PASSWORD }}" > ~/.vault_password.txt
echo "nameserver 10.10.10.1" > /etc/resolv.conf
ansible-galaxy install oefenweb.fail2ban
./.gitea/workflows/deploy.sh "${{ github.event.before }}" "${{ github.sha }}"

View File

@ -1,14 +0,0 @@
#!/bin/bash
changed_tasks=($(git diff --name-only $1 $2 | grep '\.yml$'))
if [ ! -z "$changed_tasks" ]; then
for task in "${changed_tasks[@]}"; do
tag=$(echo "$task" | awk -F/ '{print $2}')
if [[ "$tag" != "deploy-homelab.yml" && "$tag" != "main.yml" && "$tag" != "all.yml" && "$tag" != "all.example.yml" && "$tag" != "ISSUE_TEMPLATE" && "$tag" != "workflows" ]] ; then
tag=${tag%.*}_install
/root/.local/bin/ansible-playbook main.yml --tags "$tag" --vault-password-file ~/.vault_password.txt
fi
done
else
echo "No changes detected in task files. Skipping Ansible playbook execution."
fi

View File

@ -3,12 +3,6 @@
become: yes
tasks:
- name: Write notify script
ansible.builtin.template:
src: scripts/notify.sh.j2
dest: /tmp/notify.sh
- name: Delete existing template
community.general.proxmox_kvm:
api_host: "{{ api_host }}"
@ -39,12 +33,10 @@
- name: Install Tools to cloud-init image
ansible.builtin.shell: |
virt-copy-in -a {{ image.dest }} /tmp/notify.sh /usr/local/bin
virt-customize -a {{ image.dest }} --run-command 'chmod +x /usr/local/bin/notify.sh'
virt-customize -a {{ image.dest }} --run-command 'sed -i "s|primary.*|primary: http://mirror.amaze.com.au/debian|g" /etc/cloud/cloud.cfg'
virt-customize -a {{ image.dest }} --run-command 'apt update'
virt-customize -a {{ image.dest }} --install qemu-guest-agent
virt-customize -a {{ image.dest }} --install vim
virt-customize -a {{ image.dest }} --install git
- name: Create new VM template from cloud-init image
community.general.proxmox_kvm:
api_host: "{{ api_host }}"
@ -65,6 +57,9 @@
ostype: "l26"
vga: std
scsihw: 'virtio-scsi-single'
#scsi:
#scsi0: "{{ storage_target }}:0,iothread=1,discard=on,import-from={{ image.dest }},format=raw"
#scsi0: "{{ storage_target }}:0,import-from=/tmp/debian-12-generic-amd64.qcow2,format=raw"
net:
net0: 'virtio,bridge=vmbr0,firewall=1,tag=10'
ipconfig:
@ -72,7 +67,11 @@
template: true
timeout: 600
vmid: 10000
# - name: Pause for 5 seconds while template imported
# ansible.builtin.pause:
# seconds: 10
- name: Import HDD to Template
command:
cmd: "qm set 10000 --scsi0 {{ storage_target }}:0,iothread=1,discard=on,import-from=/tmp/debian-12-generic-amd64.qcow2,format=raw"

View File

@ -1,10 +0,0 @@
---
- hosts: frigate
become: yes
pre_tasks:
- name: Base Install
include_tasks: tasks/base.yml
roles:
- role: docker
tags: docker_install
tags: frigate_install

View File

@ -1,124 +1,100 @@
$ANSIBLE_VAULT;1.1;AES256
38373165656433363632616266653138643765313466306431303232663263346637636236393838
3335313363396633313438303566623538323965623663300a626663666438336261343964656332
32663261663939363664623861313530626139623133376130303764633062386361336364656632
3134323639383531630a376132366365336333626364666361376537653136306538626632346562
33653736313132373539313263383232303536336435653935366234343139373630626135363131
62366263346331373834656432633839343162376336363764363539366634393339336337373065
62386631636634313131313139666134623034316463623630373533386465613162636539363535
64386266376631326534333838636538613034363034376131386635336139333235343563303232
65383064323537636137336435376333643232313162323439386262323739393730646336316662
66623538353166646661663134333536343239313538313065323133333965373462306334313132
62616135383065323966643531303636343138613862643438393664323536343062663434623131
64343432633961303139633934353538313132636436386630323565343434633635636664653161
30376637306130623263376631636261313261353337303263376663313832346139613336353336
30656236383533626332393431373831376130656665336135336264386164633135366365343064
33653133303763386638663935306237636236633330393062343162383934326236316163633837
32386534343331313537323330363331633463656132383930353935306462373738366233613430
64326262323462633266666434313463393261346563663537313936663931383062313038353365
32313265353865313234343061653030313332643531646562323661306536356162336164326636
65626135353963616564333239303763613530633464373263633965313335323034343261376431
61313837663864633636613365336236383934373037356265323764313466613964366664303965
39656139653266376165303437636566383039313037373861656465623434393832376163376239
35383836366631326161366133646236336136303638313036613633666236396336646538383636
33666439386461383933663163386461343066373461613863356239363862303166613336346163
37313938353731633832343061666563656466386439313764653139336461666637616132633435
33613937323134656538643766303463653231336235326234663764326330333564656237626639
63393435343861643332623530356631646366636661333963383335313761616635363038663236
30323939393937633430393035393962613033303764343962396539353631656661353965633563
63313933346263623864326131663832303339326435393861303332623736626464363535393864
34383638646261353934383839303539313762303961346439306137366462643538636463633538
62643532633661376462346632623034343533636339313639323362353434343463656461313036
62396130613039656132336661646563353836316139396136306335326561343964303435333737
62313335326565306433653333316433353038643636613662333333303165363630663464643065
36373933613235343131636262653936666562323937383732653431346166396438646233313534
62323539336366333366616337316136343764613332663763663639636334383062376363393332
38306666656438646333333632383562383332636362643365343332356236346662373239646266
34303137396239373063316664343061346531376266313362646361323236363732353332346539
30613230663933663832353664376464633437386538636235386539663134383233363536663035
34356566346565353463303839313539613937653961323134306432643061346230363866323461
38633661396165626631393237383463376336336365323362623132386264373736336138623039
35666334356662376562323336393439353138326132326266623635636161636361376165373431
32636630653231323133383366393835616537313966653035366234666163323438333061363838
35343039313265343734336165343435376462303331663165363737376131613262326662306431
34306330313333363132396132373332663034363961343764323164313636356531343836666163
61363731636437663633363961326438393664393465613431333030363439643664386434653239
65366339326330316361656165323331376139623163353562346438363133303739346361363432
61373862313966396536613461356439636662636138343738373234363230623165356630633330
37613439306261393765316435316436356336653066353964646330636338333734626639333533
39653237333164663933663633626135353864343238353463326633383834313133666438373261
66316137333134356465353938646338366234633034376331323061343634376665376234333465
36336532663535613630653136343537386230643330383937336662646235386239376262366463
36386565666362343139663565653934346366633939646339383635656664613039306439626435
30663034356562303239633836356435376361653833383565373961353765383462623937636531
66353336393231386563363430623732393635386562313366366638306133383439386264356539
32323666303039313362616534643835613539663665353231383461373262656232636130623130
65656232626634323136306233326364346534323937636166373635393731306131633963366636
66626434626534643532626231646434353531656662396438623339656134353161643639313564
35366331643933393131656432373461333236653139616438376636376138336234356366656639
31386163623938333132303530303633366639653130623231343565623965383936333964343666
64306337306136616465613230326531336639383738653638623533343133376166326262303263
38326231396537616237623539646162313131396165303437343661376362306137313437613739
61666133323833623533393165333736656236626433663837373636333532663764646538616435
33663739656363663235613462386431303261343738346137323932666162666566336265663166
36336438653039626230646137656630656636306165656563653531616164643733636466363935
31366330366233373434316165373264636334313362353962333664333865666536633362616461
37383634663739653462323432653765373666623831373038646531623166663131383565326338
37303237303234353738653930656138623838356238396636346139653838653239626431396432
63306166313931643939363564316332383738353461393561316137663831623636366661616262
34653766353830353939323864646336363735333737643263663564653262363131383563326630
37343765366332656563393662303563393239306132653566663339366465316464396564326634
34313762653666343666353236316264383930653563623730353834326232646439356234346231
34623062376636353832333131313733336164376333386534653234343461383338376663366635
31623038303466353936313463663962363135323935323061343636343632353037363437626365
61373061383762636434643662326437643839316439643464386435653063633230633237616163
63323738376165383634353631363862316666346139303938396333633138306364643038626463
34633163323434326133646532393563353639396135623336616131623066323632616435613630
37373235626261303336346633313932336363353463653933343530306162373333343036363337
32346236336166353965636135643462313465343434313931323234333763366536646165636437
66666533336665373331343466376161353466393630376266643938383961313236366639336439
37663965363535613562366139333832393734633364353866613733386135393735616433353433
30363663666164396665613533363031623839626530383061623232666562653831343830363166
39623038636538623036376666306436383932616461323332343831306432623832303831393661
31303435396632643863646133656138323163333035313262646461373730393437373336386630
34366531326562666431653232636239333630373231336135316437383738316231346134386665
61376566663166393466383533393834656366323664616239306432373837626537316237643739
38383935643466306234623034613966653766643036396264393163366535613961333465376362
31653336626234346532666666343566383733326231313539363633356565373361383964636336
35646266333437393430346164653336383838383631663334386265323937313961663865393961
65336332663465316263316163623535376364396632656566346232316437653930613833623538
33346138616565313239636664613838363761336335336363613439356261623438356365316438
61613531313031356165366538373733366661643830623738346466633264383761336231623633
32356134656364643930316231653661653937373136346438363731303530343963303339653063
62323635653065613238653837396463386639666464303839353865656365333661316639613134
32616137343265653066353239663763346330306231366232353962393664653438643131363231
39613336333764353330383238636337643132393161656361633138313965326235363134633232
39323738353933663431616535363034366563616134653164353336646136636334363134333339
66633463326664363363656163376661393261303765316339326639323364396662393133313539
37363533306432653361646539333132376234636465306530356437363731343765303731343436
33303465306538393661333163333062613963316564646230353664643431353566656662343062
62393538343837656137303830643562326461613033343837313436333663393361356464623433
64306436313131353465643132346430343664386335656339346564323130633362376333633466
33383231613564646164626231356639363132323065633837386463343334633637623864633534
66323438623931613036363338316237393661333331383238353532303962616236366433366330
62633761653234643864646237343031376230313633323230646134353265316165336638343532
64393034366338616662383034393137623965643739373563623033663361383838623037313864
35646537393233626561386338343634666633633265643238616366656366653061643036633566
63316431653435396331356130343338643661626161316561626431636562343332303865343936
62613533373362616632333563653865316137333133356361323330646266356531353163373136
61376438393164306430333263323564383831646565323139343766316562393963366433373032
30656565306262363034333465643063386263646262316136376336613366653938353136306536
63303635346163346162336165313530313538336664616166396139616365636266616137633162
39303765366561643335353564653563663539616139376366306239623332663931383039626138
64633861366338323930336463666261393266386663343835373138303233393231666664633533
36356465636137313837626239366433333532613837383062633061656632613633656235373663
37353633353531313362613037653831303031313833336633663531306563323531396637353434
35663134316533646264663030656262336638386264356165316161646461663333383436613033
65613539363737366566393233666430393539396537366634663462386466323830666562363437
30383663303863353234356538653662363662383366663731616637626438353061656266623664
61343161646464353362666433616535633732393163316130636534366361313261626361666362
34363537663562343238353030653461373032613133633633633839663439316237306139623061
66376565303931343266656134363838663931353938663562303737643136633138376436653063
36326463646366393736373736363630343838393337353738653739653136656662643366356565
33316438623839663731333939343961393037306438366434393132353431303831613937653634
623538346535333165376639363863396636
64343839626330386331646462663462663936396466316130313266623633613262616431383731
3365393436363336313633323031326666363736643632310a393631396465396363323335313230
36393861303062623565353632333262393431373861363239356431353931323630623563373035
3832383534326139640a373832303461623665303530623138653962613062336665306132346261
63346134666631623338383961353066373264346365343365646565313336626266383135343831
61363132333634313233396364303631343436383630346232343863623163643536363031656565
63383239643335663833383366633237336266663965353964666632393963343432333161393238
62613965623834393866366630303131353830373764313139316263326235363531643661646134
38313431303163333764616230336565643466653632373563343466383630303830343261646639
38666666393831346365356338643366393234343261373763643938366265316232383139323232
65386535633330383831653638343238623066316161623862326130366431333131313033653538
30653964363163393033626439333037646236376135646362363735363438383462336333313161
34356632646562373738333233626635333662373134343232363235386236393039356666656538
39316439373837303133666261663732623730366666313363363330616537373039363661383338
37376535653066613532376333393963353734346536383630393864316334646263376132646434
37633630373734666636613639646631643039396666346161383435653739653737633239623436
39623364616463646665643261653738343635663933323935343162653335656334346338376166
36616334646337383230633361373663666534336261653838346262346630653263303236363465
35366139653766663731393864356465616336353862383636633962323865353431646133323930
65303563646535663530643664373861373938313561633366343466346532626632323136373563
62383963393031353531373664336635303338323137323864376330343830323161623130393932
36316538346637343430323735323338366463396233366238653532623336636562376538313038
34343066623366656335326461316538643466346166643432663766316465386130623139373436
64306230646338336632363134616430653634356262613066363834373339376363333439356234
62663336633830393366336561343366626266613336363639616566376266303431323861323164
63346638376564396161303634343765386661653461666266303566346365356664303038383362
61393938383761313839373634353763613532623135383331393934376135383330303331383834
31323664623338613161316464326432313764346432323236623237623232356139613664633935
34316431323835306331316232656534346439356236353235313231363163633332643030613530
30386435326535663533643237326439616666656261363638343664366633366532333037626139
32393939323833386665663931376337613433646439633163326166613035326639623462306166
65616433373264323663663839356637316466633836343233336666393435366535333732623666
63656433323039666564613734393836353238623433393165616633383231613763346163306239
64373338656431353336633130373635306666646430356266343566663063663036376339366162
39326133386437623663643831633666396231336331326136303761656363326132643338343361
32386365373932336561333366616437663235643832303834663737666564393333316464646136
31306533373133383362393465613238366265653464313730383937636338343938366563393033
34613238343333333663363132386162323033373331626339386636653435353063613634343738
63313235323465383839383165323561646337633862326431646165326236373032323561386266
36373034643862623937336633666637666662303134646137383930663865383832333630303033
32313832353134333439396563366266393832663638383530663438663963663634376666613463
61636531376166313463613365333435623032393634636130366261643961636534323064303066
35373934653163303337316237643230336463353366633432666430316362646534623730376231
33363661396233393662643435373263633836343237316336346138313663626533636231363739
39646238633766303535333662646361396462323539626365346534653762323764313836613136
30363766646365346165353163383335656531383230353536616432616331306661333837366430
65653431376133303531356231663136626562346336373738386266303262646263353862356361
65333337363864326466623361323461363361346262323031393130386435323063616261333237
33303238386533623265386237333432616361366661623333316532386563336632396161323861
37333833316664646539363364323163323264636133643030323631333430333030346561356332
34336362396136656230383837393332316130363438396538323462623033666465383633656233
65306637633764613130376233333130306263656530616430383265626639613566653836373165
66303838633033643137303739336337333936653833353035346263633463353365306333353338
31383162326334393536393664373137646332626536393266323932303038663038343665613437
64353264396561643665303831626361353136316463626334303630306430646161393131313065
38396536373933306330356434333861306434393962313436386464613631303165366535366463
39316636326362326336333130336436613532366334613439373637636465336636323334303833
35353061643865356138303662656633633763303461653137323965376133613236383061356330
62326637666434353135363735346534363666396262383638373763626534343337643037643439
61306266663662646464636432303631373736633033646131656431373531346331356530363139
39366264386438643564346664353762303837613435393766613832376561613261623831653666
35343236666661346361306438633061616534636433353462643337373331306130653134613231
35326562373737623364363561323333353839633637623039653338653134643437393331396637
34663535653439333663343239636335333265643232383637383264393635313532313466633232
36373562646239383638396532653130646263366262373932363930313339396462356530383739
34393235646234386532393630373436353834336637643435346630633961663638333839366132
32666337366566346166343236303736643631386131373762386463633535623433336131353631
62663036633866666162383833353666323763343337656362626166363164326562386436623662
39323538653337626231303336666264663530346564613465613530643230333934613465373465
62366137633532616335623530323961663830616663613938316437646630383434643430386433
39373839636538303239646436366339656333353365343138313364643234346236316162616430
31323238393135636165336636633336633232386661613762326563323638626533303034346131
31323433316261633232383562646566376266633466643637366366346235333934623462636431
37623135316634616334353062373139653865633934393930393364343430626163663064343533
34616430663232356231343831306662666432373937316661346462643231343539643561363862
30353636353362653366353438346531666637663763636138666366306339373633306335323537
38393461303261666437393639363265373531643534373163633161646164616664663139333361
62303062623833333537626332353062366566663138376364373062363664366438323039353735
63303236336235316431343330356138376361643766646535363364363739343563623831336466
62303462393033373631616236656664373431333532383935383663383762353763336663373039
30656162333762363139393961663632316538393638316633633663393361363237366262383235
34383964643933633839303736633633653566353836363230353438336134396566656664646434
64326436636435323137363239656131303162646635373736656663353630303630336164353165
35333066396132393337383431383862623437306430313730363633333138383232633431613262
39353564303035666235303364393664376264323466643135373433656562656132346431396264
63656461383438363736386633343835643063613932613339366132663963666466313132663033
66633265323939653437373764353161623963636437663563613238323561633735643036346634
32656539356135373163353533313733393932333766643730663239363163336666653039393531
36613535663561323037613930306430323864366432633065356665383263636439633333323332
36353364626465323338326634646439633836616534333763626265393732623039306639393838
38363063386462383165316362353234623832306237396131316365343664666232643530363338
66306331633361333762303337363061643664396335303135656235653537396433326230653863
63363466363135333834346264613432653532336534643938616362643064656665393939306437
39326366343239663461643262636564363632636431326134656163343862393731643133343637
63353134656464616531373835323637363861316535663564313735356662313931313833373239
30393463316665616439303064356438383665313832656139323737366234313732353136346364
31353163393535356164386561323838623235383630666633346130353939633564346366373236
34393332373438666461333061323430383663626436663735336636643531366539643439623636
373264356538616535636564643665356562

8
hosts
View File

@ -1,15 +1,9 @@
[proxmox]
pve2.comprofix.xyz ansible_user=root
[cloud]
vps02.comprofix.com
[docker]
docker.comprofix.xyz
[omada]
omada-lxc.comprofix.xyz ansible_user=root
[vps]
vps01.comprofix.com

View File

@ -1,10 +1,11 @@
---
- hosts: all
name: Configure all servers
tasks:
- name: Gather facts if run with tags
ansible.builtin.setup:
when: ansible_run_tags | length
- name: Gather facts if run with tags
ansible.builtin.setup:
when: ansible_run_tags | length
tags: always
- hosts: all
@ -15,25 +16,17 @@
- hosts: cloud
become: yes
roles:
- role: oefenweb.fail2ban
vars:
fail2ban_services:
- name: sshd
port: 22
maxretry: 3
bantime: -1
tags: fail2ban
roles:
- role: docker
tags: docker_install
- name: traefik
vars:
traefik_host: traefik01.comprofix.com
tags: traefik_install
tasks:
tasks:
- name: Deploy Vaultwarden
import_tasks: tasks/vaultwarden.yml
tags: vaultwarden_install
@ -45,34 +38,21 @@
- hosts: docker
become: yes
pre_tasks:
- name: Connect iscsi
import_tasks: tasks/iscsi.yml
tags: iscsi_connect
roles:
- role: oefenweb.fail2ban
vars:
fail2ban_services:
- name: sshd
port: 22
maxretry: 3
bantime: -1
tags: fail2ban
- role: docker
tags: docker_install
- role: nfs
mounts:
- name: Data share
path: /mnt/nfs/data
src: truenas.comprofix.xyz:/mnt/datapool/data
- name: Data share
path: /mnt/nfs/data
src: truenas.comprofix.xyz:/mnt/datapool/data
tags: nfs_install
- role: traefik
vars:
traefik_host: traefik02.comprofix.xyz
tags: traefik_install
tasks:
- name: Deploy comprofix.com website
import_tasks: tasks/comprofix.com.yml
tags: comprofix_install
@ -80,11 +60,11 @@
- name: Deploy iDrac Fan Controller
import_tasks: tasks/idrac.yml
tags: idrac_install
- name: Deploy MariaDB
import_tasks: tasks/mariadb.yml
tags: mariadb_install
- name: Deploy InvoiceNinja
import_tasks: tasks/invoiceninja.yml
tags: invoiceninja_install
@ -92,7 +72,7 @@
- name: Deploy Homepage
import_tasks: tasks/homepage.yml
tags: homepage_install
# - name: Deploy osTicket
# import_tasks: tasks/osticket.yml
# tags: osticket_install
@ -104,19 +84,19 @@
- name: Deploy dozzle
import_tasks: tasks/dozzle.yml
tags: dozzle_install
- name: Deploy jellyseerr
import_tasks: tasks/jellyseerr.yml
tags: jellyseerr_install
- name: Deploy lidarr
import_tasks: tasks/lidarr.yml
tags: lidarr_install
- name: Deploy prowlarr
import_tasks: tasks/prowlarr.yml
tags: prowlarr_install
- name: Deploy radarr
import_tasks: tasks/radarr.yml
tags: radarr_install
@ -124,7 +104,7 @@
- name: Deploy readarr
import_tasks: tasks/readarr.yml
tags: readarr_install
- name: Deploy sonarr
import_tasks: tasks/sonarr.yml
tags: sonarr_install
@ -136,38 +116,19 @@
- name: Deploy mealie
import_tasks: tasks/mealie.yml
tags: mealie_install
- name: Deploy pyKMS
import_tasks: tasks/pykms.yml
tags: pykms_install
- name: Deploy gitea-runner-homelab
import_tasks: tasks/gitea-runner-homelab.yml
tags: gitea-runner-homelab_install
tags: dockerserver_install
- hosts: omada
become: yes
pre_tasks:
- name: Update packages
import_tasks: tasks/base.yml
tags: base_install
roles:
- role: docker
tags: docker_install
- role: nfs
mounts:
- name: Data share
path: /data
src: truenas.comprofix.xyz:/mnt/datapool/docker
tags: nfs_install
tasks:
- name: Deploy Dozzle Agent
import_tasks: tasks/dozzle-agent.yml
tags: dozzle-agent_install
- name: Deploy Omada
import_tasks: tasks/omada.yml
tags: omada_install
tags: omada_lxc_install

View File

@ -1,25 +1,8 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended",
"renovatebot/renovate-config",
":semanticCommitTypeAll(chore)"
],
"ignoreDeps": [
"postgres"
],
"automerge": true,
"automergeType": "branch",
"automergeStrategy": "rebase",
"commitBodyTable": true,
"ignoreTests": true,
"major": {
"automerge": false,
"dependencyDashboardApproval": true,
"commitMessagePrefix": "chore(deps-major): ",
"labels": [
"dependencies",
"breaking"
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:base",
"renovatebot/renovate-config",
":semanticCommitTypeAll(chore)"
]
}
}
}

View File

@ -43,7 +43,6 @@
- name: Setup cron job for backup
cron:
name: Docker Prune
weekday: 0
minute: 0
hour: 5
job: "docker system prune -af && docker image prune -af && docker system prune -af --volumes"

View File

@ -1,51 +1,51 @@
$ANSIBLE_VAULT;1.1;AES256
63393637353338613963303064303761336430383438363964323064626161343030663531363033
3736323161376337633863326466613137363466666564380a336537656364333763613539313233
38313932333633653464323762363965616463633066396230323236333761666561396534646336
3234376364643434380a333533383839343265303731313537666232343863623031313731356539
34353434366239313562633330636332326262626636363866636233343562303264653664653936
64323965376661626138333037346634306563313335356436353037646637363239656636346337
36353730643431613136346364633935313462656637353839363139393737356462323039366266
30303336333735383433393830643730326232666234393830396362623065396538613965653331
34343538613038643362623334343461363364326533396238336166663762333137646361303861
32393965333865383466653333393638346139613939366634343165333733653739643539313133
62633536333862643236346638366531373934626439316538633761396336396237306638326232
33323637393738333534653335323836353031393963323066363132623265663837373734636636
38623732366463316564386331653264353966623238303065663064396335343232396530343233
36333131326464396266616262316130613330336632343739653737306139396330663466626235
37613134613366386163656430666436383762633164353662326236373336666233656238356163
33373166636431363033643365643238643732653463643064393561333334333538636132316464
37613363626636396439376233323364313232636639623261303139373865306633653963346337
38653732666537663762336331636630646239336236323666356566313963303032613938633364
32623937616162366339653031373064666131633737643061613434313835663364393739333336
35343938656534623965323738396130636462643932663663346530303232653363616230306534
65326265633134613731646632343064633164663835623865346265306562643135356237313230
39616439633564303635316533346531356162656562373661323061666137396334366237373863
66306263623564373464646665396232653838663262313434633433393538633366303863336234
64613830316230316638653736353037303163303231656631663332396464623532306131346537
65313563643061666132323066363533333733663830623631373332383066323666346264303336
62303233333635333162646236326538353435666131313966326364323630623563636538626165
65653036366634316363306532373433346662393163653036616566653466346139633365323236
39633335616135353430326236363065313334323132646565323833393162633739326561616162
34653663353036633838366466316666306631666662646562313330336533636264363633323330
33633338303835626433353264656237613932376665626231393462393164616266323264333961
61616365303566343730363863613937663035303134393733306338396636303362386266373738
64323461303035323038376231616264633038656531363662333561663935363431363032626532
34626337376563363166653164666331616462383532636166323365663836323036313239633734
33303062343562633364383363396534383732373866373166383637623635643164343132366462
35323132656438646533666266623939326634393866333763376638316538633938613836633666
30303966333563613438646435653866383333643637383735656630333630306163636366356332
32626165316562363065373339366639666437306135663666653131346534383766313039623138
62356531356438313539646131633130383837653963626235373536313932386434616338356432
37353961336634393930323063363034333231346362323231646335316366633930316235626435
66663236386262393565656165633064646564666632363732373736373964663839633465393139
39623165383562343734376235346231613038303161333230646462663532343135356439376538
31303536356436393435653964323837303263373336343764613364323239623462376334616562
35633132636463636435326663393865396130313534623231303733366431333561326539333064
64663961636135653536373933633764353835643033626166333865303534353163633765396630
38346139353635303037636335313839366264353639366334363365656363666563643836313539
65316337653833663134643865636434343863356561356531646134303333333534383537363035
63313834623633316335353536323932616632613231643835393134626133656264303131633838
35623966356430663361633134666431356638623832663766613362353938663865313436613030
38613462336138356361396534623631393330386432653531363266363130303232323166623030
3363366638393761646466623138323338643135376530333639
39313339373165343238363465353965316536323664633761343236316532386661303662336231
6338623335393732396162633239333465353534333638360a383761346336623538643564383239
65333966336434306465613138623766666434346439313536363364613837663933316535393134
3235303335393036300a613735393164396361353263333562396263643064343561353735353563
64646631353136353432396561326335306636383336346430356461366431613037613163363163
36323331666532613866373462373235393239613937613536663061613866376564333031333834
65346564373835646236386230393838386431666539303263656637353663376234613562363136
63306532373461653539303862373036373861383865653137383333383731616131323665333636
63643935633032666164303335386436343566306237636162356630366236656337363633326530
65306137316236646330353736663261623166343539303937346234326135666536373863653066
65623731373135613764393532303065303936323835613139626637353565336335323866376338
66343237383463393132396636656235346566373432643533303066386462323137643866373936
62663666336663383664653065333134643762616530373561663061383932323762636661626434
33383463383139343166613166383336393664356164616433636231383635343163376531313034
30636435653038393332653964656230393936383837653065313831633736633861656163643463
62333430656136333230353363643863303837366637373565663836326634646561346137343731
65653939326366613930383935383564353930376131376139313265376335623534613262643934
34353961343135313933636630616666316136643238363962646563636333633165616239356432
64656330613336636363313833356439363038656265393561343263616366653231393438313533
35636437643764366533393263393231336366353033646266383962396264333639643464306561
35343633613863343431643831646164636264366561316366303338353965646634353036336231
62626430636166643062343865613037626635356439646336396436343539386337363236393562
61323037383331343636343266313762616664343336323163353131326130326134356437313832
36356563316561393366636234396565366465333064303439336136356630386662323030393636
62316334383064613938376335636264323731626634333061623966613663376266383535633964
63383030326461323730383239323137656338623465653735303838383266333633656435653138
37373632616536323466316439613865396239646137323666653533646333316434616466663438
32633864313434316366663035386462653430306534353062656430623730656537366262346366
39633262353665613766333161663263316463653861623130383062303161326133653736393564
36366362363931313430356436633835343737396466386434623933323133626136353431363236
65376230636262643962666466656532326438366138646239643262303536326630396562626336
36666436663037383262366236623730386662386362616431383937623633356531306662643834
35336236336566393561613861666330343937336232306333373733343136623064393861616466
64386239346539386236306434373461313765363031633436393037663461333734373063373564
33646265333538653835363063363031313439666237326433346265373362643364353130343738
36363162303665623731353139313932316361336432376265333836326332313331366330616166
36633764316462613538653265343031313033666534396361313837653339613339633232626666
62323166623666393232633630666164363839616161383465386435316134303734316464356136
64316565353161386162383237643964646432623939393532663962343964313966323032653531
36643461633935306439396364616136333364376234613135306464383531616262666261343235
62353565336535393439333263663434626332613533653165343134393166353036363038353561
31666238363963383831383365656333653036653130333237616466393830326666306636383837
65626138616262373032353865646261393534613165386437383166313939326331333238393638
30343931393933663339623930393262306336656437383338643232393932363731616139323633
39613361396630323961343731373439336464366332633837366333346239633836396130303766
65323361636362303061386430346662373165663635633534383338333762386233623661383731
36383262626533323636653933333961306137356366653131303235346362613231366335373630
62336232373064363565353361656631386565393533343932663465373935313465343035326437
34313563323764326135616462303830663365633630326533376666323632303732343761343935
3636363938336630313736663832633833626530323834336566

View File

@ -16,14 +16,7 @@
template:
src: templates/traefik.yml.j2
dest: "{{ data_folder }}/traefik/data/traefik.yml"
mode: "0600"
- name: Copy Traefik config
template:
src: templates/config.yml.j2
dest: "{{ data_folder }}/traefik/data/config.yml"
mode: "0600"
when: traefik_host == "traefik02.comprofix.xyz"
mode: '0600'
- name: Check if {{ data_folder }}/traefik/data/acme.json exists
ansible.builtin.stat:
@ -36,7 +29,7 @@
state: touch
owner: root
group: root
mode: "0600"
mode: '0600'
when: not file_status.stat.exists
- name: Check if {{ data_folder }}/traefik/data/traefik.json.log exists
@ -50,13 +43,13 @@
state: touch
owner: root
group: root
mode: "0600"
mode: '0600'
when: not file_status.stat.exists
- name: Create traefik Container
docker_container:
name: traefik
image: traefik:v3.3
image: traefik:v3.2
restart_policy: unless-stopped
networks:
- name: "proxy"
@ -72,7 +65,7 @@
- "{{ data_folder }}/traefik/data/traefik.yml:/traefik.yml:ro"
- "{{ data_folder }}/traefik/data/acme.json:/acme.json"
- "{{ data_folder }}/traefik/data/traefik.json.log:/traefik.json.log"
- "{{ data_folder }}/traefik/data/config.yml:/config.yml:ro"
# - ./data/config.yml:/config.yml:ro
labels:
traefik.enable: "true"
traefik.http.routers.traefik.entrypoints: "http"
@ -90,4 +83,4 @@
traefik.http.routers.traefik-secure.tls.domains[0].sans: "*.comprofix.com"
traefik.http.routers.traefik-secure.tls.domains[1].main: "comprofix.xyz"
traefik.http.routers.traefik-secure.tls.domains[1].sans: "*.comprofix.xyz"
traefik.http.routers.traefik-secure.service: "api@internal"
traefik.http.routers.traefik-secure.service: "api@internal"

View File

@ -1,51 +0,0 @@
---
http:
routers:
oc-router:
entryPoints:
- "https"
service: oc-service
rule: "Host(`omada.comprofix.xyz`)" # change it to actual address
tls: {}
middlewares:
- default-headers
- https-redirect
services:
oc-service:
loadBalancer:
servers:
- url: https://omada-lxc.comprofix.xyz:8043 # change it to actual ip of the controller
middlewares:
https-redirect:
redirectScheme:
scheme: https
permanent: true
default-headers:
headers:
frameDeny: true
sslRedirect: true
browserXssFilter: true
contentTypeNosniff: true
forceSTSHeader: true
stsIncludeSubdomains: true
stsPreload: true
stsSeconds: 15552000
customFrameOptionsValue: SAMEORIGIN
customRequestHeaders:
X-Forwarded-Proto: https
default-whitelist:
IPAllowList:
sourceRange:
- "10.0.0.0/8"
- "192.168.0.0/16"
- "172.16.0.0/12"
- "100.64.0.0/10"
secured:
chain:
middlewares:
- default-headers

View File

@ -1,14 +1,14 @@
$ANSIBLE_VAULT;1.1;AES256
30666461373434383438383763303438353366373738666233613434353831663933343230366538
3934303433373635396464326430333236303432373861660a616238303330613233623639656461
63313335613534613065353831653663636533306664353736356566323662396437373161656333
6136346164303530370a363366343461653964393637393737356237666335323766373166366531
37653166323262393239623662666266636636333234333232373264643565373761633766663664
35383666396636653261373535373464663531353538653361633263306265363662663561333234
61613564343833613161636532316466363439396362333236663838653739323037623863356665
36343836306639666534613333393463373161653038623661633833313762376361653965333065
36313930623663623166613163643066343436316363646338393933343139333966663031313732
31396465373764383032383865373237323138376164396562353964653632363934376462323838
31663633383961353633313438373964626339636165626465306533643132356139373739393163
36356337343631383139333663313337353931613564373262623739386631656137353463643734
3839
37326164353965653363666362343638666536626536646534363962626530383131643035373332
3834663632333832336232316439666530613061363930350a346235613533396231323530306666
61376536303332353762323930623664373835393266393464333739313461636164653431646438
3139653830306461320a656233383866333239383432616131373831363564333531313761663666
30633334383230663737376666376331326232343931376333383330363531656239613865386263
66616439646361323838306535333633313233383034383730653166623831336238373566633066
32383836396133383030343361623034633236373765613731616137333039323235363134373735
39653530626661336362313865386134303362316663303834376132313832626533393334393531
66363265386463313830663162633933316365363563306461623664323637366162383636616633
35333433636539643733646333626133663365383061313730323261623538363532393532303335
31626265323366343237393833623963353739356138393866346230373066613938306463363934
32633063336231343063356530663261623532303330613630653636616466643231653463376165
3539

30
scripts/backupvpsdocker Normal file
View File

@ -0,0 +1,30 @@
#!/bin/bash
#
#
# Backup vps02 docker data
#Stop all containers
docker stop $(docker ps -a -q)
date=$(date +%F)
cd /data
for dir in */; do
dir=${dir%*/}
backupfile="$dir-$date.tar.gz"
#echo "backup $dir"
tar -zcf /tmp/$backupfile $dir
if [ $dir == "vaultwarden" ]; then
#echo "rclone vaultwarden"
rclone copy /tmp/$backupfile BitwardenBackup:BitwardenBackup
else
#echo "scp $backupfile"
#scp /tmp/$backupfile mmckinnon@truenas.comprofix.xyz:/mnt/datapool/data/backup/docker/
fi
rm /tmp/$backupfile
done
#Start all containers
docker start $(docker ps -a -q)

View File

@ -1,2 +0,0 @@
#!/bin/bash
curl -H "Content-Type: application/json" -d '{"text": "Cloud-init provisioning has been completed on '"$(hostname)"'!"}' "{{ TEAMS }}"

View File

@ -1,207 +1,176 @@
$ANSIBLE_VAULT;1.1;AES256
37326564313530383861326135373436643937313364643531646663316564356532346466326238
3964646337616334656161366630666634636436356433350a373561386339313534373739336434
33613062383830653636353035363530636135323962393633623836383261666230326463623662
6438653633633835380a643166383061633835356566353165656263646539313930623133633437
30643836363230643936623337353533343837663766373566393834666364343764343834393939
32303366343434323235653666373131633236366363336434666438323436643666656438613063
61616139653164343064633162363632383566316165353366383366623637376565666461323536
37623531396436363037323230396537393636366166353038363063373734623932623131343536
64383563663033373936333938333266646339626165373737353564343030396437653238376564
65306562396534396439333536313235323431643631316330333538306336626138653266633835
30383537343932333261656639626539616139383832633230616138313435356238613934656632
33613232613764376136346335656336333836633231393435383237303662336464666566623761
38653539626530666335313537386263363131303639333338613863306432353461333538303137
66336334636330623738333432333066313630633563353139373330623732653535666431316434
31643761313335343439343839333664346232663232383138653834323463373164333635383062
31333938306631303937323235373839333532306164306263666537626637393535306230326231
31303362613261626563306365613537306236303038626531623931656431666662346362643131
36663764633233333365643564323765646138623163396564353430353732343936626233323166
35386131316534353630643435646237373861386164393437653738643633373863613664393832
38316137396636633035323462623735303739643439303533636262366639306262373733323464
31626365303237623030336434333766623434313233343631393538356433383037336437356330
39393334653763333338613764613264633162316531336239623531383862363336366634373937
32653232306538383064303161326562386431376330306131626364616637613433393437366164
39643232353931663837353438653464333136623265373730643431393264303461326262303830
65356465623734313332376237656562633733363630326366363061313461343334643366346630
38666332343765373062666137613835343635356164373232613964336164316139653731353366
35356665633432323736653038393461326130313736643036353930373439336161623433303462
66613733356238333761383364666661613639633465653434663638613835323166313762663866
63386361333832616530363035656432363932633963633837363961613766303436356336386462
63633235336432363162653836663938376131383931386538633234313630653866616665636264
32383765666236363737353438663037396463363831306562653766646333333062613665343936
33656334666534303234643339373066626639376561333636316336656164383932653432646463
33373739303736353765653635623139313831663435353032383334393165663330323733636239
39353566646134653033336136376565316662643230663033383562376239393765376539373863
66303636366131353034333536636334373966343537386131616564633830386266633336653365
37386463356237636163356336663132663833663136663766316461613233383135643532333665
35643561393937333536626163663038333436336135383235323733666332343961393566396135
36633734636632646434666137343839623164366634613434636462313261316231643833303333
64366362323336323734323761323161666632386564303135313635353133326364626338313164
31623839316364353738306666663164613234363162346336303838653430326135666462316538
35373963383339626133666162306234663361393636363939323436383133393832623861373333
63343531366164396332393233393337356466666530643962323663626635333939663739376262
36363233363931393965343837373661313337663939373561646532326234616537313732373364
35373465656166343065646239333637613732313433333461613136623638336532613963386237
62376239636165393934313264623631333035333432633862663936303361353466633365393035
35316339383462636463643435316233653164333635353134613666383738303464346335353431
37623462396139633163666234656238396438356262326239363166396439366530366665316466
63666631636138623333643863313039356665383036373934356366346163633933383434666365
35623661343432393630616466613137353563353364323766613462626438383939386264313661
64316565616234333237353334383135333966373336303865353939653531323031623132623362
64383166653063363931343331376265326534313666656165656164313661336430303630633936
37633466353133623132393038306132376335343035633434303661346265353038316163653466
34366430663330346232343765626362656137393932343064393866646462343933333936643338
62353561383763323962333536393132316438306437373664313865643935373764336362363863
62316366633064353139616136663836306662636661653135336338616330396664323837373037
36353632623831623431326463653961373931396439316565343863383239313066303937663432
30303131343835326631333861316362656666643161353739343031656264653865653962303335
61333362616162623732393133316666346632383664343637623335343733613437653434393735
35373339363662643337353733636164306437363265316533353533326432353739393335303866
63366164323537313139646536643262306434303431383362303232356336373962623966303837
32616461363635656262616461313532313561643836336163373363356238336532663264336562
33363564386161376531653631633962306562313935323738323763363433343037393638323431
62353034313462363638303663316266373563633732333830336530326666346533353466346238
39366236616264326464626165393266363233336537633038353064333834353962313731643930
31656366343739303332663565303233353937383131313762393435353465396537393039343265
30386165313261636336356639653462363030393363663962663636353738326431383933396534
35623435663631366162316530333036323838356661646634323163343864386464346239346532
33363865306633323036613330653464623866666430656134313631373538383731396430646564
30643831633264383665633331363836353263366166666434336433303562373132356465373635
64616136356633323261356666626265333066666535343835353534633836366135363334313830
37316634336236353161376330326262363338396537613065336431303039366561646630383166
62313965633165353763656665373535623538326561383664663163653565333463303639663230
65643833623732633366323739313361353335393536396535356531343264363239613361383834
64643634316466663963316131373536383039663432393635613233656465633032363934303339
32373937616431303862353031333234636639303238373330353530623430653731636466383536
61363630316265393137336231613433373266656565616262613637653831626639623264386665
36313735643035343634373334636362623935393863396263643033393935306330646530333135
65303339323363346262386562643332396338353663336430376361626135643234663266393134
39316338623461356333363361353962626164643063326637306162366435643964313539363239
66306366643761343437636230323035623437373066303635363833623466393438383534376430
31396436373930393533666531646231623061393765653533303366353833643938343064393032
63326332396133626631313831633233373736623638643333633339663762316630633531316666
63386435303865353235313665653664353866646635323366666631303336326466636236623131
34303761663365313366666437333739613661336666356534323236376430643338366238306334
30663865336535363061366635363135613264666362373833366633313538643430663561316662
63356434366133323963353034353839356130396338653435343436643437353838396161666135
30663038313034313265313464313366373738373935623161653161663235363136633837653138
32623037663839383735313434613762346464666236373633653462326336393237373738636631
61326366363866363432393534643534663238633031623537333764653931336337326531663464
39663036633937613130343161316561636561373938623962636439323862653339343436333630
64323862623338326237383939623739663937303836646530323133336332323637643432623566
36303761343930336137316135363632643138636639656338316633393061623430613132353135
34363430613566636433376232663332393038343637343263356136386537653566643432633334
31343630383863306637383363323365393730306662616132663762656537363230633666643865
30346237376431366262343965336238333533323066316639346333613264313461623333633239
65326265343836623134323431633763343063376562316639316436383963303564326665313934
36353735643061393133353465363035383261383032633635316431633362666334373536393665
63393231633839393664393732353366633533363333613837313464336138343561636161633461
66396261376662356439646661643564643365333431613663306530646364353434393331353161
66373031663330633333313061663765363731353632613630303433666164626162633930356566
39306430386239626365356265346336356165346562346366333162623061303730333137363937
35326361613438333766393033663537663635333032613437613837373637653734383536303262
32333862363566396230356432643732616436346164656164636264396534623339333661323462
33383633366463326537653934363630353236303032343033393033303034333630653236393238
65646339323931633763643363313165356161633731666430623563663934313066636632333138
32333936343730313735313264626361636634613638333537346562623631303132666233656166
63316162326331313761386130363832373531353938313039623432326336356261376334343264
32663939313664343337373162316133653530366634353463303265346531666631656162613338
32376439623062666561363036343764653166383531373630633937383661303831366461313361
36333963373930383632393431616364396239663865313834363162636333343262663633653836
65313139643831613162376131326437663734636330323432373766356634336432643133653939
32353132373762616139656536303138333262306538383830323135613631316364303833313236
36643362343430333939366639303634343434336662343262653463336336363231306437663433
30353833623733303066303031363362373030333333393838646232336561336634386366653433
36386131363065623732316266346331396161366262343863373965376562306236363561356236
38306631656439303763613930313561643066366563353765313237633632383239663539303730
35356566633435363766393465633332643637306361343836623130393162363137663534306439
39303130623133663630643964666535633639666665393461613664313565666135636230353535
66316436643562333934393932306136616662323065616535326666666231376466333030323865
61393539623531323731363866656463333363373534653464656632636563376161393235356431
39326637653739373336313262313832393865323662613561336432666163623465353230623565
33313438633363376439396266333363623162656235656231303935303030643061383063366664
37393133366236383535666633636362343965393230303036356133363433393030323330306333
37393236646364656231363033303530366561353431643964653436356637326230373464326430
39646632633165373531303161306434663530643938383563633435396563613633366261646333
31353838313138393066383235633536393936336662636462613832383536366462643566366664
66663465643362386133363030326135623232363733373835326437663935393330653730323937
61666238396662336536383638373636306361343538346439343365626238646534643937393061
31666633613434356435313837393636616335306564643031663230633132326336643335616431
65613235373732623332383464323237346163626237643464623964653762386264356336633139
36653662306537383537343362646334613964653936396364396563343932383666353135346262
61653437663732313966313633386633643133613166353463653837663632336639326334356563
35313436333166333638363965386337346235643863636636626462643635653036336262643833
36613935613030656265653631313861393831333733363735303935383964643532303438633238
32373737376336653961643964353333313530363966333635626335333733303237363764646638
39336366613962346262373839333162393364316337666536323062323765356231356364383665
39323363396236646164343035646634303337303337643339373563303061666666386132613533
32633263346335333336313363343032653139623531623431646437643866656538353737396534
30366161326665623862666363373337343932666236636232343531643838326336386531386339
32653539313939333532353538353535373933616439623331336531366263643135363630303530
31303063386633306634363330393237323362366536626234356334663033363635653930623236
33383465313036333238363036326166393037383361646430633131303565366564353330623065
37383235623932366439333638373032653264323536356130633734306166326264646462636132
37343639346630393565363533396536393566396531356235313765666531336332373565663433
32666434303835323835656563383461343930396638633164346232323236383238333836323036
30333737316462303837643732343932663861336563323330356638396636666431333339643336
62616561346564323938333562643234613932613133316132363264383939663833633037303037
33373134643238613634326533373339613662613137396563616362663931316533396331346134
34366234666266343466306430656366633465376539336234623030313236306336386135633262
35616439396130636136313835356662666463376632373732393963326233353635333339393663
65393133393939623435326666343932393837613539616432623733313432633231613231643262
38633833653561356230636634343339663839393662643331336234643161666532663137646364
33373836653036366237346335363664656131343061396636663031613032373238613665653135
61383338326465623061373530353966666662376333373661393739373837626535643132333962
38633338653330356633346337373230663866643639626632353530396238396366336432336333
66653432386266656436343538366439333336373838363231656237343164316232333734643032
63346431623132626639643664663531353936663365356638633862333339356630383066643632
66633230613964363039303435396530396437343263306234323832383432363738343239373666
36343664376261623133373063383264646435623064656339373836326465663135343033313634
36343264393966653538353465636662653565646264336436303238616464386530633863643337
35373061316437383566303530326139626334306633633362323632306632343636373735653933
31363635383934393732643963633363633639626237323239396433356639636232656535333332
66333233346534396437636261663062633561336165313834306536386262656262323466653339
35613731633638326237353466316630343263316265656633363863323834373163623032383263
37363163333265346635343030393232306136613564373761336139336362343039633131343864
33663961383130356332333061373333316665383435616136343433633066663366333230336330
36616137666636663565313765656533356266316636343463343564666263363165666636346134
63386333393065666664303238396335323930303837383430633766393539346338306164313661
63633436386339326136363439666635393336393530393434313934643432663337306563623037
66396466353233303435646363303036363162646230396334626139666565626234363432333439
32386465393163643231633965373733353833643439653434373165626532643862396436393836
39363939666335376263626462666534356233653039356539366666663265343562386133386161
31353731633731356362396164393935656430386461643438346635393363333738303866383532
38653366333030323364353637316534373265373631303161393966636531633663316539356539
65383936316236306465353765313733666631373162353239326361323139636162306666616530
64343937616564313164353262303639656161363934616139613363323438373265373835636133
62323562333435353630626332653834613830356630623836316536383736616463363532323834
31356264613232316365306637623866326365323436306363356636633264643335323362616532
35393835363865623938336436323331646163396334303238616439303836326262323462393162
37313039336339376339646563353364356131626135336338313237636330343766306136346434
33313037613639316530616534633465353532633637323830623464663261666631636630663362
63646531343463613962633632323361663838616338316533353763343933623036646363383565
37653765363238303737333266316362636537366166393234313865656365623563383331343262
66613738393132663265383665333634313665323736623731363335373865346262383164323239
65353939633063353430396563643863306263356136323965356132396261623663643537336533
38316531326133303330326432316432316530343934343330363262313539663236663534643134
33323265303862363934393039666666663832363866363731373838333761633937333662393164
33323264643033393436313333626633356565653265643664306262646363363031333532653134
33306335346439666563666264333966633839613862343564326338373664343734623237656337
63643661643634333165376135633334363962383132633531353231636465386263356237303138
63303339653634633237316166396135653631323035346339336565396536646433393462303638
62326635303665393762323933663036396435633636646637643933663662323935613035323237
34646436636463646434656639376365653436383436396566326231616136396562333364323264
39643365626637393761636438333361343963346633666538663463363837633836396236653132
39396537333264636438396564316637653561613565356635646364343734356235326230303038
66333861353534626166316335396636383039643235303731313432623863623864623836343866
64356263376231386234333863636236356533646139303138633130316237616166323931386436
64656464353535313537366336323731326534396362653263393863363434643866346365613764
63353839363639306362623630343331393931306664323963333731366634373237323663366236
36613761326561646531303939636233386538633435346361616365393165346363616535386165
36386165643935656163353462336363643334313864653033313631623133303439306439656632
35356434363934386365323334396135656438376430323836383663626230663438653133666461
31303331376535366132363237613836343539656362323034383233633935393165626264646332
65326531333332393531376437393134316464636537326135656632653238383633366165353230
61636266383764376237323033373430633332343839306538363937653237373936633665653235
6466396363313564343330663431353237656462316166303232
31393237373262646664663739633130643562326538336561353265633064383466363532366332
3966346334336430633238376438353961393936393037340a666263623538653061646366653831
65363535646434393035626435353630626133643634373961393063343361646561643233633733
3263323166336638380a626231353030393766376534333438643930313432383266323763633130
33633333616561316465666133626261363361333433343733653266633337663863383137376533
62363038363631626463303563643638623231306363386261646639316332613134383334383737
63356561303735656638306566323432626531393332643634626531336230666338363433363435
32313539326265643637656435613965626232333631343264343038393564663831343063646533
61333835306632666136313637306165316434376234316632626632653133326633363734663033
35396235646335653065313664383861323033306636636336376264326534353635396530313462
30386237636438663363653032623030666438336438346434656637336662633930316536613832
64323966656337666239616636333533366636383833356561643734613664303236333939663262
63643736626163363362343161613532343564323661366261313331303466343639343437386439
32616133316236363339333338336566366236333337623232366139353461353335383466316639
64626661613530626639323233383065353033316238346635393633336431656666336436356638
32336637356336666630323036326562353737316231386636666136616465353764313236643761
65373836313037363065346339333031626230306366353632653936326463366665363664643161
31623962383363663964326439396362643932633130313332633363666537363564333830613730
31633766613639356161386132313863633830363963393663663564343732633366386235393464
66643831643735353066626566356363643131376265346665623666366663343939636638383631
66616562323164646235616137646632373631343834353832333632366636646332393537643439
64326138343462343064303234646362633862383336306237643636623734363165616362313035
37346437353566646133316631363735346561326565623965373833376438646439376630363634
35333133643135333761646261646566626562623962636161616163316433613261386466613937
35613531356265636339366139663865643863383035303365373034633239386261306539343539
31633039363134363731616136343031363264323734623462383233613437656265666165616330
39383661653561366365383462363538386439646436313761666163646334623737326563653034
61636538643263366264343265353436346433643837623838666638343130663466656365663839
33376332626537623865316136363938396161643466356131643736646138383462373961616531
38376665386133373939396261336531333738646135326165363864663463356638633337363232
62303736316263613431646263306436393932353062393531383965353137393163663664396461
33636631623234383835343436313764663538306164386465356265396130343364343665376665
38316533333338613439356465366663616231396234663633623264373366313432396134653663
35353038626337346434326465343230653861323432653438623337653333393266613566326231
35653465333062383863376365353832633731323066646366386262396431656330663666333038
37663035613136393063373765373034376631613363643035666533323230303065333065656565
38613633353862376436393838326664303330306538313363623862316131393064316530383432
36653664613834336165653364643436643333316333306438643638643634363430633466373564
30633032356430383239623466393339616639623661333339313337613734363237643539303862
38323963383361623333336437333066366332643030623162653162303065313761666564366131
32393431383731393233333138363138396139633831306137613534326535656265353736636364
33643834353633343962386361303564393032303432626138626535623132333732623937366230
30666530636130643737363039376463643161373437303235616564363132393836306430396366
30363064316666626532323832343132313264653338653130643439656662633566363237303837
64663661646462303761636130666561333636393962333232666134386439303166396637666265
65313330373862363534373666393536333666643032306466626263646530353534316134363662
63383965393731313138643035633064366130326562663763383963303339383233336331626361
31366431336663356463306639613366396534626235326437383666643165333832333338386533
35643763643938346437353365393333336263623533623936366337333730653632373037636434
38323730336539303664386339356463616531376230383762666361663030653639343135326165
33323234353766303839323736646463313733636133656561373038656431356338626632643534
66616333646233656365346261633034383536393635613161373338343431383931353930343166
61316332663065366365306632353963393766333036663137303462613262396561613664633434
32376265306636323439333335316261626262636161646437316463333833343565663335383436
34366531383361383532343630613965386465316463396535396132356635346635643465613065
32333838303263323839633061373135303136343336323565326334343331333163393766643133
32393439636632356330643662376365333238316230633430653133323965393330643065363866
30643839373936316639373331363739356531333065303937646131663162343430346133633931
36386464376238643461373133646638373439313431643831313064653666613537393264306665
32653662303465303639323639636238633231306665396239376530326437383764386563633562
66616238616336633265656463653036363932323964623135643936663961386164303365363661
62303866643463613365333363613463623336306336306566383639363030343761316330353833
32303066643464616639313666386330663433633831366338326665613538336539373439656532
32356463363662666266663263333562363861626462666461343834383335333731336137303464
38376633643439666538636439326266646239343664666266356665653565656339353261623462
30336261653432376537356162613361636139366265343439353330653836336337646433316361
63363638653435373635633834353161326230626138666439643531333031663335663638653361
61633335396166336465623263343863373961643735623631383762613763656261383966323838
30623264366138343839363636663733613836313166646137656165323662356139363564663837
39656333346435633536383130383730313732653363666266303230363939653331653936356565
31366663653332303630346438646431633161636230326330363862336466383161353732636431
30666339383766626433633435643564323939366435363435636232343935373063316637316434
39383461376466373165613639343362393732316532336535633465616434326464306162303066
34666637356563393930326665616330643262633639663635626635313330336334633361393566
37646263323731353764366563393866373435343361653539376533363332393736326261326338
64303439356633343164633137373433363237663034383365653630393364383038313062316665
38653038316339303035396234626438383863656332316535633231393232633332323331626661
66666435653433623031393332613834613566643338646430393361636131333466356466663465
61376461363238366566373635623464366139356430336162636232343061643634643230343332
62363461393266666563326237326133616431393461353538366233386266303432663531373662
63303866333865656663623565653664643934623566396565326264663237393566643135316130
65386666343262373832663637346531663066363565396437373330373665376635653661616637
39383233623262393361313264316230626565326466306563613930616465623531373636343439
30643030616637313639306234643035326639643533613564303731373731646464323737356166
39393839653431343431373034653536633531643934353432653636393937346230303162646537
61623463343833613636316165633430613134663537333665303632613637326563373266383063
33366439303538613134633130343439373666363566333663346536623464653334323533343939
35316437653537396135326330653834613863356562323765346432343234636263376238356633
36393334303635626535636134333863363333656632373430343264373832636138663338643565
31323434346337653934666537303563306562666532376630643637626532613730643837303634
39393565613034336339386366636661313330396232303832316666353965336563373466613563
61633565653137386633343631653232373162346633366362373632623534616562343637653062
35396265323930323938656663633030623766366239306435633438663136333865643263303261
37313564383935653565633066313862633364323462373638613331386438383830656635316661
35386236356331376565616633356631626661366339393163343739373735633062323930326430
39643137383761623132323931303461366232323132323064386538373133613531393665353832
66303338626639353539323063666235353532333437373433376337363035623639316431616264
64343665306139666661623635396130373464646663393438366163613634336465396535373935
33376530633266386664316532623863366131623766643364663061333964373331363366383631
33313361646134363964366330356437386662323536306164663661346630376238333966346135
33653134643564623263626432356562653833363935613863343834306436323137356239376437
35626134646661633736666330663861396536326137376337346136366433323338373332623566
65373966326232656337653139333762643961313162356461623536366230363034613066336133
31613565383064306431333664396237373537646236636634373932326632346266373065356339
31353466626530623431653366636663353263336332663164636366643134346239653239626434
34373535316133366265333337663334646630383035653637663864663264306131343039663739
32343037383537356331306539313130303961656164373533663839646530356562303964313135
36626164333963313566633033393266363161353065343530303064646465616661313238663839
39346134343735323561396631333838626434376663393661373436363962373564633634346339
64356230623936356632313665633163343233366339626631396162343866636361373437336164
36353666623930666565363932386232643062333836636638633035353061383932613332386636
61396135623430323438633537346132363063326337653032353737356261616338363634663134
32306638643835333331613432353766313530643034396632353762316436623336363662386137
34353061666238613065323739656332313330323165373231383638306436383166393961633337
36643235376532306137653237386563653337356331326435346431316564353462623038383838
63636361383634313530666463653962303938356238393134326332623164663239316433313161
62383866383466343936373137306331666261303636316136346264303563653966356136383065
61636337353336326662643634323732646233613136643034336232333064306162346333666166
36633766313733653435386432353937393137306665633766306236633162326534303061323963
64386566626136336261363864663662373635346239366230616437633031633830633336313634
61613636663738623338656165646561353638626265623739373630393336616366613636396330
30643666326135343037303830613732643561313237393766353863666164656432666261626466
36663934653432386662383134636631643466323132356266383065316265303164353330623633
66623536383563323431613038613037306130343738393965616635613930636638306138393839
65653030656264323837383238303231346434646363363134633730663562313366623038393133
31303736376263656462643961666537303163666637613465626534623730323764353536306339
63316132613634316133386636373836636237383830616236326663323365323834376365383066
39356661366334393233303164666666656463373166393739636332616137393439656432663433
36356136653231363763336364303339613038653438386233383364623630656236333661643362
66333464306462353262373636323935653931663334643662303066383737323464376332326566
37336336623765356536326239316561343666316562376635623734633832626632323563346235
61393961343766663964326436663037613134643130666239303832313161326136326265643434
38326631623836663464663734656538653636333061383633386261386236633832303830663233
33623862663230666265316339633464626534363465643336646462326431393863656536613234
39626135623637343865303965303035356635336439353463323937623465303934393631363238
39333534306539303831393039623433336331636135356537353233333062666664623238326233
64386534666562306561376432343032313966343532646533386137623664333336346131626361
37363834643635343831646630346263653438623262333666316131636666366261303665636634
30343634346137323830333637613434343639623338383432303063316639636462626366643535
61643739386663643132313137633139373536313132356465373738613462363264663739356632
34663131353034626361633863613933336465633131386530336663666361393335633437666333
30303130623961376637326664393561363462303564633463333734336635653335336538303431
37373331353039613436616130316633393261346331396337343565323565356238303431653237
64366165383831376632366364616536326236626166633465616534613036633463663439303039
66313138346338353765633964346137333639613862613638626136306233343536643737343662
64323165333262623434643261646531396436333965383064313131303136663865316631316565
66626466616661383564653435356261646337366435353335383234623034653633623364373062
64313966323339663563373566363132656334636631623630623437326265393365656639386136
35383539623565346263393966323232633030366439646639613763313932313038616362643562
33663331336637383238313766336562613330363264666633376263383337333865363665326331
35363866636431313235373535396230393831383738353232346265316432653666383236303161
30643038616538343534323061353736653537346534643963313630636365333835356430643434
33633031623137326530663835356462316161656364326633383761323337353934306536643333
66346361363962366336613138633561636665653337373230613032383264306532373937383637
66306331306639613065353332336234616136616461663631346532363835353065666463333864
63366231323165623863633361386162373432303338366162356338306361326361393530646465
34356364323365376462346661313530306434343837373064323431663130343838396363333538
62373462396264363565616466633663373465626635613464626265386464396530303262306236
64373736656361376266383432376432333632663736376134393466636539383264373462643961
34343433633865656164636434363139316466376361306433663838613036653366613730396537
30323631366664623834633761643662626438303132633063646536666162383162643737323538
38623432366264626439383830646438336133656432613733656466333065616338303466386538
37333135346633383736373932383263356638393966356537326632323631393462356366653938
65363666353032626336666137653963653137643230313838653037393739356363326535373762
35316461633763663263626133383162396164393436363665313633663531393164663061313236
32306535383731326139343566356665376238356532313063303962393639366164373530396535
33316336363562316266353534393466653739373266313533323133313464626236336137636264
34393730373662316137633564663864626137303438333262366466396539356137383835346361
30616533626338333532383434633463653062326437353831376166383365393330646432636266
62656238663761316532313366346661376237666436346335656439396564363464323063353664
39303261346631356536643961666638353334303932303938383830616263633738653837643861
65336437326638353365323232666332333162663935306665636463623538346166653764626139
63653736363736623139366164623437623734343766666239316338663136623232383832623632
66306536363836663939386261383266303664616363346662643835356239666338386665613066
323839643933313039656433313432396532

View File

@ -1,12 +0,0 @@
---
- name: Create the dozzle container
docker_container:
name: dozzle_agent
image: amir20/dozzle:v8.11.5
restart_policy: unless-stopped
command: agent
recreate: true
ports:
- 7007:7007
volumes:
- /var/run/docker.sock:/var/run/docker.sock

View File

@ -10,7 +10,7 @@
- name: Create the dozzle container
docker_container:
name: dozzle
image: amir20/dozzle:v8.11.5
image: amir20/dozzle:v8.5.5
restart_policy: unless-stopped
recreate: true
networks:
@ -19,11 +19,11 @@
- /var/run/docker.sock:/var/run/docker.sock
env:
DOZZLE_LEVEL: "trace"
DOZZLE_REMOTE_AGENT: "omada-lxc.comprofix.xyz:7007"
DOZZLE_REMOTE_HOST: "tcp://omada.comprofix.xyz:2375,tcp://vps02.comprofix.com:2375"
labels:
traefik.enable: "true"
traefik.http.routers.dozzle.rule: "Host(`dozzle.comprofix.xyz`)"
traefik.http.routers.dozzle.entrypoints: "https"
traefik.http.routers.dozzle.tls: "true"
traefik.http.services.dozzle.loadbalancer.server.port: "8080"
traefik.http.services.dozzle.loadbalancer.server.scheme: "http"
traefik.http.services.dozzle.loadbalancer.server.scheme: "http"

View File

@ -1,42 +0,0 @@
- name: Create directories
file:
path: "{{ item }}"
state: directory
with_items:
- "{{ data_folder }}/gitea-runner"
- "{{ data_folder }}/gitea-runner/config"
- name: Check that config.yaml exists
stat:
path: "{{ data_folder }}/gitea-runner/config/config.yaml"
register: configyaml
- name: Create config.yaml file
file:
path: "{{ data_folder }}/gitea-runner/config/config.yaml"
state: touch
mode: '0600'
access_time: preserve
modification_time: preserve
when: configyaml.stat.exists == False
- name: Create the gitea-runner container
docker_container:
name: gitea-runner
image: gitea/act_runner:0.2.11
restart_policy: unless-stopped
recreate: true
# dns_servers:
# - 10.10.10.1
# - 127.0.0.11
volumes:
- "/etc/resolv.conf:/etc/resolv.conf:ro"
- /var/run/docker.sock:/var/run/docker.sock
- "{{ data_folder }}/gitea-runner/config/config.yaml:/config.yaml"
- "/etc/hosts:/etc/hosts:ro"
env:
CONFIG_FILE: "/config.yaml"
GITEA_INSTANCE_URL: "https://git.comprofix.com"
GITEA_RUNNER_REGISTRATION_TOKEN: "{{ GITEA_RUNNER_TOKEN }}"
GITEA_RUNNER_NAME: "homelab-runner"
GITEA_RUNNER_LABELS: "homelab:docker://alpine:latest,alpine-latest:docker://alpine:latest,ubuntu-latest:docker://node:22-bookworm"

View File

@ -26,7 +26,7 @@
- name: Create the Gitea container
docker_container:
name: gitea
image: gitea/gitea:1.23
image: gitea/gitea:1.22
restart_policy: unless-stopped
recreate: true
# dns_servers:
@ -92,9 +92,9 @@
env:
CONFIG_FILE: "/config.yaml"
GITEA_INSTANCE_URL: "https://git.comprofix.com"
GITEA_RUNNER_REGISTRATION_TOKEN: "{{ GITEA_RUNNER_TOKEN }}"
GITEA_RUNNER_REGISTRATION_TOKEN: "A01dvleL55F0o5OMJpa4UsE0gJ38ANKrAw5vKei3" #"{{ GITEA_RUNNER_TOKEN }}"
GITEA_RUNNER_NAME: "gitea-runner"
GITEA_RUNNER_LABELS: "alpine-latest:docker://alpine:latest,ubuntu-latest:docker://node:22-bookworm"
GITEA_RUNNER_LABELS: "alpine-latest:docker://alpine:latest,ubuntu-latest:docker://node:16-bullseye,ubuntu-22.04:docker://node:16-bullseye,ubuntu-20.04:docker://node:16-bullseye,ubuntu-18.04:docker://node:16-buster"
- name: Create directories
file:
@ -106,7 +106,7 @@
- name: Create the opengist container
docker_container:
name: opengist
image: ghcr.io/thomiceli/opengist:1.9
image: ghcr.io/thomiceli/opengist:1.7
restart_policy: unless-stopped
recreate: true
networks:

View File

@ -16,7 +16,7 @@
- name: Create the homepage container
docker_container:
name: homepage
image: ghcr.io/gethomepage/homepage:v0.10.9
image: ghcr.io/gethomepage/homepage:v0.9.10
restart_policy: unless-stopped
recreate: true
networks:

View File

@ -2,14 +2,14 @@
- name: Create the Dell_R730xd Fan Contoller container
docker_container:
name: Dell_R730xd
image: ghcr.io/tigerblue77/dell_idrac_fan_controller:latest@sha256:174665c24789b8c58bbda82dd48720256c20b1d828f76c02d6f08acc919537a4
image: ghcr.io/tigerblue77/dell_idrac_fan_controller:latest@sha256:1e44a090af5332842332fd58ce22a1034c045764f0104e9cf38be2386b1e1753
restart_policy: unless-stopped
recreate: true
env:
IDRAC_HOST: "10.10.10.138"
IDRAC_USERNAME: "root"
IDRAC_PASSWORD: "calvin"
FAN_SPEED: "50"
FAN_SPEED: "35"
CPU_TEMPERATURE_THRESHOLD: "80"
CHECK_INTERVAL: "60"
DISABLE_THIRD_PARTY_PCIE_CARD_DELL_DEFAULT_COOLING_RESPONSE: "true"
DISABLE_THIRD_PARTY_PCIE_CARD_DELL_DEFAULT_COOLING_RESPONSE: "true"

View File

@ -73,7 +73,7 @@
- name: Create the invoiceninja-nginx container
docker_container:
name: invoiceninja-nginx
image: nginx:1.27.4
image: nginx:1.27.2
env_file: "{{ data_folder }}/invoiceninja/stack.env"
restart_policy: unless-stopped
recreate: true

View File

@ -1,88 +0,0 @@
---
- name: Ensure open-iscsi is installed
package:
name: open-iscsi
state: present
- name: Ensure parted is installed
package:
name: parted
state: present
- name: Discover iSCSI targets
command: sudo iscsiadm -m discovery -t sendtargets -p "10.10.10.2"
register: iscsi_discovery
- name: Set target_iqn variable based on discovery
set_fact:
target_iqn: "{{ item.split(' ')[1] }}"
loop: "{{ iscsi_discovery.stdout_lines }}"
when: item.startswith("10.10.10.2")
- name: Check if iSCSI target is already connected
command: iscsiadm -m session
register: iscsi_sessions
changed_when: false
failed_when: iscsi_sessions.rc not in [0, 21] # Allow success if the return code is 0 or 21
- name: Connect to iSCSI target
command: sudo iscsiadm -m node -T "{{ target_iqn }}" -p "10.10.10.2" --login
when: target_iqn is defined and target_iqn not in iscsi_sessions.stdout
- name: Set iSCSI target for automatic login
command: sudo iscsiadm -m node -T "{{ target_iqn }}" -p "10.10.10.2" --op update --name node.startup --value automatic
when: target_iqn is defined
- name: Fail if no target_iqn found
fail:
msg: "No target IQN found for iSCSI server IP 10.10.10.2"
when: target_iqn is not defined
- name: List all block devices
command: lsblk -o NAME,SIZE,TYPE,MODEL
register: lsblk_output
- name: Set iSCSI device variable
set_fact:
iscsi_device: "/dev/{{ item.split()[0] }}"
loop: "{{ lsblk_output.stdout_lines }}"
when: item.split()[2] == 'disk' and 'iSCSI' in item # Adjust based on the MODEL you observe
- name: Fail if no iSCSI device found
fail:
msg: "No iSCSI device found!"
when: iscsi_device is not defined
- name: Create a partition on iSCSI device using parted
parted:
device: "{{ iscsi_device }}"
number: 1
state: present
part_type: primary
fs_type: ext4
part_start: 0% # Start at the beginning of the device
part_end: 100% # Use the entire available space
- name: Create filesystem on new partition
filesystem:
fstype: ext4
dev: "{{ iscsi_device }}1" # Format the partition
- name: Create mount point
file:
path: /data
state: directory
- name: Mount iSCSI target
mount:
path: /data
src: "{{ iscsi_device }}1" # Mount the new partition
fstype: ext4
opts: defaults,_netdev
state: mounted
# - name: Ensure iSCSI target is mounted at boot
# lineinfile:
# path: /etc/fstab
# line: "{{ iscsi_device }}1 /data ext4 _netdev 0 0"
# state: present

View File

@ -10,7 +10,7 @@
- name: Create the jellyseerr container
docker_container:
name: jellyseerr
image: fallenbagel/jellyseerr:2.3.0
image: fallenbagel/jellyseerr:1.9.2
restart_policy: unless-stopped
recreate: true
networks:

View File

@ -14,7 +14,7 @@
- name: Create the lidarr container
docker_container:
name: lidarr
image: ghcr.io/linuxserver/lidarr:latest@sha256:f6cfa621faf759bd7936473a28a05671f23ab3246ca932341ee5a20a887143ca
image: ghcr.io/linuxserver/lidarr:latest@sha256:c3d8c0970b0e5a7dce0b29930efc83ab33a0fff8d1afbfca88a2104affb80c45
restart_policy: unless-stopped
recreate: true
networks:

View File

@ -14,7 +14,7 @@
- name: Create the mariadb container
docker_container:
name: "mariadb"
image: ghcr.io/linuxserver/mariadb:11.4.4
image: ghcr.io/linuxserver/mariadb:10.11.8
restart_policy: unless-stopped
recreate: true
ports:

View File

@ -10,7 +10,7 @@
- name: Create the mealie container
docker_container:
name: mealie
image: ghcr.io/mealie-recipes/mealie:v2.6.0
image: ghcr.io/mealie-recipes/mealie:v1.12.0
restart_policy: unless-stopped
networks:
- name: proxy

View File

@ -1,24 +0,0 @@
---
- name: Create directories
file:
path: "{{ item }}"
state: directory
with_items:
- "{{ data_folder }}/omada"
- "{{ data_folder }}/omada/data"
- "{{ data_folder }}/omada/logs"
- name: Create the omada container
docker_container:
name: omada
image: mbentley/omada-controller:5.15
restart_policy: unless-stopped
recreate: true
network_mode: host
volumes:
- "{{ data_folder }}/omada/data:/opt/tplink/EAPController/data"
- "{{ data_folder }}/omada/logs:/opt/tplink/EAPController/logs"
env:
PUID: "1000"
PGID: "1000"
TZ: "Australia/Brisbane"

View File

@ -10,7 +10,7 @@
- name: Create the postgres container
docker_container:
name: postgres
image: postgres:16-alpine
image: postgres:17-alpine
restart_policy: unless-stopped
recreate: true
ports:

View File

@ -10,7 +10,7 @@
- name: Create the prowlarr container
docker_container:
name: prowlarr
image: linuxserver/prowlarr:1.30.2
image: linuxserver/prowlarr:1.24.3
restart_policy: unless-stopped
recreate: true
networks:

View File

@ -13,6 +13,8 @@
image: ghcr.io/py-kms-organization/py-kms:latest
restart_policy: unless-stopped
recreate: true
networks:
- name: proxy_network
ports:
- "1688:1688"
env:

View File

@ -10,7 +10,7 @@
- name: Create the radarr container
docker_container:
name: radarr
image: linuxserver/radarr:5.18.4
image: linuxserver/radarr:5.11.0
restart_policy: unless-stopped
recreate: true
networks:

View File

@ -10,7 +10,7 @@
- name: Create the readarr container
docker_container:
name: readarr
image: ghcr.io/linuxserver/readarr:develop@sha256:d5a1330416284cc3151895ca35858781016e7ab6ab8cf0d13a516c11b1efabc6
image: ghcr.io/linuxserver/readarr:develop@sha256:2502c4fb7824e61932bde9db79b903e083ded22d1ed0ebbb0b7ce5508347877b
restart_policy: unless-stopped
recreate: true
networks:

View File

@ -10,7 +10,7 @@
- name: Create the sabnzbd container
docker_container:
name: sabnzbd
image: linuxserver/sabnzbd:4.4.1
image: linuxserver/sabnzbd:4.3.3
restart_policy: unless-stopped
recreate: true
networks:

View File

@ -10,7 +10,7 @@
- name: Create the sonarr container
docker_container:
name: sonarr
image: linuxserver/sonarr:4.0.13
image: linuxserver/sonarr:4.0.9
restart_policy: unless-stopped
recreate: true
networks:

View File

@ -11,7 +11,7 @@
- name: Create the speedtest container
docker_container:
name: speedtest
image: lscr.io/linuxserver/speedtest-tracker:1.2.3
image: lscr.io/linuxserver/speedtest-tracker:0.21.2
restart_policy: unless-stopped
recreate: true
networks:

View File

@ -6,14 +6,11 @@
with_items:
- "{{ data_folder }}/vaultwarden"
- "{{ data_folder }}/vaultwarden/config"
- "{{ data_folder }}/vaultwardenbackup"
- "{{ data_folder }}/vaultwardenbackup/config"
- "{{ data_folder }}/vaultwardenbackup/config/rclone"
- name: Create the vaultwarden container
docker_container:
name: vaultwarden
image: vaultwarden/server:1.33.2
image: vaultwarden/server:1.32.1
restart_policy: unless-stopped
recreate: true
networks:
@ -33,30 +30,33 @@
traefik.http.services.vaultwarden.loadbalancer.server.port: "80"
register: container
- name: Create rclone config folder
file:
path: "/root/.config/rclone"
state: directory
- name: Copy rclone config
copy:
src: scripts/rclone.conf
dest: "{{ data_folder }}/vaultwardenbackup/config/rclone/rclone.conf"
dest: /root/.config/rclone/rclone.conf
decrypt: yes
mode: "0600"
- name: Create the vaultwarden container
docker_container:
name: vaultwardenbackup
image: ttionya/vaultwarden-backup:1.23.1
restart_policy: unless-stopped
recreate: true
env:
PUID: "1000"
PGID: "1000"
TZ: "Australia/Brisbane"
CRON: "0 4 * * *"
BACKUP_KEEP_DAYS: "14"
ZIP_PASSWORD: "{{ VAULTWARDEN_BACKUP_ZIP_PASSWORD }}"
volumes:
- "{{ data_folder }}/vaultwarden/data:/bitwarden/data"
- "{{ data_folder }}/vaultwardenbackup/config:/config"
register: container
- name: copy backup script
copy:
src: scripts/backupvpsdocker
dest: /usr/local/sbin/backupvpsdocker
mode: 0755
- name: Setup cron job for backup
cron:
name: backup backupvpsdocker
minute: 0
hour: 4
job: "/usr/local/sbin/backupvpsdocker >/dev/null 2>&1"

View File

@ -10,13 +10,7 @@ if [ $# -eq 0 ]
exit 1
fi
#files=`find . \( -type d -name 'group_vars' -o -name 'vars' \) -exec find {} -type f \;`
files=(
"./group_vars/all.yml"
"./roles/docker/vars/main.yml"
"./roles/traefik/vars/main.yml"
"./scripts/rclone.conf"
)
files=`find . \( -type d -name 'group_vars' -o -name 'vars' \) -exec find {} -type f \;`
# password_type=--ask-vault-password
# if [ -f "~/.vault_password.txt" ]
@ -31,18 +25,17 @@ files=(
if [ $1 == "encrypt" ]
then
for file in "${files[@]}"; do
echo "$file encrypted"
ansible-vault encrypt --vault-password-file=~/.vault_password "$file"
echo $value;
done
ansible-vault encrypt --vault-password-file=~/.vault_password.txt $files
for value in $files; do
echo $value;
done
elif [ $1 == "decrypt" ]
then
for file in "${files[@]}"; do
echo "$file decrypted"
ansible-vault decrypt --vault-password-file=~/.vault_password "$file"
done
ansible-vault decrypt --vault-password-file=~/.vault_password.txt $files
for value in $files; do
echo $value;
done
else
echo "Wrong argument supplied. Run without arguments to see allowed ones."
fi