chore(deps): update amir20/dozzle docker tag to v8.4.3 - autoclosed #1

Closed
RenovateBot wants to merge 0 commits from renovate/amir20-dozzle-8.x into master
42 changed files with 527 additions and 760 deletions

View File

@ -1,33 +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
./.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,48 +3,40 @@
become: yes
tasks:
# - name: Delete existing template
# community.general.proxmox_kvm:
# api_host: "{{ api_host }}"
# api_user: "{{ api_user }}"
# api_password: "{{ api_password }}"
# node: "{{ node_target }}"
# name: "debian-12-generic-amd64"
# state: absent
- name: Write notify script
ansible.builtin.template:
src: scripts/notify.sh.j2
dest: /tmp/notify.sh
# - name: Download cloud-init image
# register: image
# ansible.builtin.get_url:
# url: "https://cloud.debian.org/images/cloud/bookworm/latest/debian-12-generic-amd64.qcow2"
# dest: /tmp
# mode: '0644'
# force: true
- name: Delete existing template
community.general.proxmox_kvm:
api_host: "{{ api_host }}"
api_user: "{{ api_user }}"
api_password: "{{ api_password }}"
node: "{{ node_target }}"
name: "debian-12-generic-amd64"
state: absent
- name: Download cloud-init image
register: image
ansible.builtin.get_url:
url: "https://cloud.debian.org/images/cloud/bookworm/latest/debian-12-generic-amd64.qcow2"
dest: /tmp
mode: '0644'
force: true
- name: Install Tools
ansible.builtin.apt:
name:
- libguestfs-tools
- python3
- python3-pip
- python3-proxmoxer
update_cache: true
install_recommends: false
state: present
# - name: Install Tools
# ansible.builtin.apt:
# name:
# - libguestfs-tools
# - python3
# - python3-pip
# - python3-proxmoxer
# update_cache: true
# install_recommends: false
# state: present
- 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
# - name: Install Tools to cloud-init image
# ansible.builtin.shell: |
# 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,120 +1,100 @@
$ANSIBLE_VAULT;1.1;AES256
37653035376133366661653938306536626438616463386137386164393530336166363965633161
3266623761396161636433373036376362336464383862320a323733623665373365383532623131
61343138613330666465323236633164616162316432633331643130393036663566623833313630
3531313266646538300a376439336336646466383339396138636631656136383865623330343837
38323031343733346632613830333836316433383631323530623631393738393665666132363334
36626364373361396261646533316631663535633166386230363239316661346362313831306264
37646661353632336136646430663732633764376332663534333665316566326462386638636232
31303132636535323734636135643633373365306662303965653034333234303265363738653939
33313738323033616266313665633932323136636366346461393933326236633335623335633432
37363261366637613639386630643836383864653465353735643735633337663866366139653164
37646461383466636134336365646533306262643438356264376430346432376235616565383039
31653065383732313435343563623765373231396562343637313437363731633435336530393936
61353166316564313336383232366134313839333635353230383037386534326538393430323034
65353532346137346531633935393437393264373166663763323861633235633566383534616337
62613265316163623861326333396230386264303533613735646130363836626133353161396665
61316561303466646361613665386263363135326638376239346531383536346462333637313662
33633266323235663733636265656339313464343832303930303937303630623230376332636465
38633765313063666338306433386136356366303633323363343838653531313962356262366466
33313239393562396664326366353966306263623362376238393863356361376430636261643763
61633561306166396230643031326635356263326236613164396335333465663937656463363766
61393362353163343266373561656431373465626538333966313937383732613437363030386337
30343464316262353737366535393533373634643966633733393535623834613130363533663330
37356634323562666662623833313362383739643061373162643733373234313564653465346666
66343631353732353931303137343239373337373732316630363265633532306432356337313664
61386561363030656366313739316461326235613764383264646535363039313330306664353235
62306265323735333166613965373866336530613339313065373836393431653564303233323864
35666235303964316530376332356634333932643938396430636133313238346630316539303639
30623134313532653634623138323339333732376564366533366162653562643638343233643633
65663139356330316233623832346537306438643637323262383965353164313134373036373031
32303666313231623135653332656538346632333331623032373062326234643364373834656461
64613961386436323930643762633431363162363430313139653338656339333132313662393537
31393565303836393634613034623235396537336465336137316632366264353536643236353965
66663133643462323139653631303230313731333235363764613463343665366335626438613561
33373432376232313264343437656262616462663466373731633737643035303565663535623533
38303230313130616266376163373931666239616436336438363364376665356561383231326666
32386330623364626266306466653432326564663134646362653133346138306336363231613164
61383236393630623336346663383161366461333635343239313438366134336330666663363037
61396338313866373562646533643831343831663231613563376132656338653662313532313037
64616333373066653035623639323764346365316433336166376261343736306338333739393034
61333033383661386434656233316364646562363066616164666436323433613564636539316631
31626134623239396664616561363538363932303565636662636335653430316439353662326537
34373433636265616231643865353862396237336561356262333236343837353631393664323438
36303636316532633566616661636436366336396237366135656663616330306239343461643337
38383736633364666463356131326233366565663535346531393135616138303734386335643063
31643763306361306131366163663161623439623034383462643036303765313631663966326164
37303133353736636265356635646436643334383932613332643632643230346339353132633434
65633566663237633639666331323338383364306266386433306461383838316132383939323765
61356435633965303765363261623531363935303835376535616339666537333964363665363431
31626238643238366466323531313861393234356266336637336561363266636135623739626330
61653566613139656537663237336132633863306638393233333930336363656237636438323538
64323239373431323366383034333438656539333765346266623261636338343938306632626132
39626330643163613437396463326532356262616233643034333261646266363932303839616665
62323563663561653164306538626631666565623737613932366636653639376339623065623831
65323837643164663531396230366634373830303236373834643336666338333833313062306431
38383238393437633338303335613266383564303131616663346439343031303438653434633461
30366532346464343038313033336637653561616333356631343433363536303661643064383933
66626131333065343734396339646462336533346338316662303230666662616135623834333036
37373965356632316236633136316435326633303063353538666130333036613561646163623839
62653631386432396130383465396266633966336663383239623735346363386461343234653830
36623130663963653832393932333962373566623862663137316337636633356362316139343732
31643137653835303766353734646637663735613063353265316533363963356235653363613736
33633334633065656665313462336266366561363933356465613161353839343234666562656462
36316366636235363738383634663365343438643933366334313765366265646438316336373134
31333165663463643763363335316430376335303261343734393238383933636630366133353239
63383933363762643033393165386638373239336465636431303261396561313938316562363539
64393066316534376632623362353563626165653330663431363734656339323032643331386661
32613535313831633936636236303832393039393864656561313866353734323161393336653039
63636336626330353030393935636164633137626338326232393531383864636534643635323262
37643835336534333737613838663363346266653265366433333333353362656262653861393437
39313233363332323839346562386234343135633134356238623164353931303261633932363438
36376462303761396662363234386239323030376362303763653966656237366461343134366662
63333836353465306331633836356632643934303637323764653033663366616639373164306237
64373830633166663531373861303534356662386563323339643961653361613265323933333634
38393065383764376237663038396437376138643933383033376135643463643732306137386634
32653938663862303435373436616461656133376263653236333038333433396234636465396361
30326561353330616436326662353436656432363738313765363666646133316638623331373530
38393962666133613334663463363665323366343630343832343066383566396330346665393861
36383733313032316363626631333763396262653164326236633962346132326431326563633064
33626230313766303966623261346664333438303434316365313932393732663330336637353530
66383165353766626235643939613535373336373232363935333838363038363762636366393264
37633534613166336639393136666636373261623239613931366435663432346535363834623765
61636230333861313433633539336463316464306339356331313865396539303965306334633939
35633135613034643136353437303537343139653165613131393133353934393062616334386532
61666264393561333130306632353432663231663839656239316566336566636430666533626464
37336362623931373161623330613339353739356632346635623533313961373133623864643366
66316161346130663531626436383664386437306432613731303632346163653730663762366537
35393838396435623839313537333132643737626134353333626535313861666535646330383038
62626563333538613736663831303433366266643331646366356161343936363538313066373733
36336331626334393661623163636435633430323132343732646363356565636232373736376563
38303363323263363463626361306164393839363339303831353730353632633035306531353064
36353163303830353965333765336233313033393233326165363939386564353661656465643932
32353461613134333663346633613034656132313434353438393236363036613463613734363138
30313661616264353465363935353639326265333639663739386433313834316130656231383433
34616631646161663331363336323366343535646166663432636166396562333632663162393235
66323931653434346138653464653531656261366662346261366336323965353636393539656130
66353235306233373833643436343735323935313834373638396335396432363532396430303533
35633735326337636539333061626439623833646362393963323032363330306463613662393065
61636466646264636535626332653264356430313536313263633030333435613539666236363636
37656362303135363339613034383961363830616237366265643131306162316461313432333462
63646434326139313664396162386137623662343337643938613662613434653832666537316136
64306664353362636134343061363664316264383838663461653066383366313231653533643662
38653135316263633437643434356436343739613034656363306636643366363361396239306266
65626439636331346561393638316433323630376537646639623035336235663266333730393465
64663435303463346363383065336662656630393534366237366539656230303665623063316164
65643365393937613861313061633366613962393738633065663438623332663862303531316536
64363237613330643061666534383638343839663165346161383130343433663465386230656632
37633231333162623165313536613836316664636632343231393961346637363364303435396434
34623465633930363437343162633865393831393863393632396335383330633565333837346634
37323663643566373262626663323361343036643533376331653033336165383631313164626662
37333239356436613461303332666463383865343531666332383563663234646234316333613036
65316337383233326363326363633232396461356335383536613036313461613037323235616238
39613232623635636138396366323339616430633363313530353237393338323762326366646132
37626466646530356239373834636333303564646535616339346231376364636331346335333663
66646364376235373732616461653866666132646563656438636232346562306662353437386661
32396535353765353138343336623833646365633731376233326161373563366562353239343530
34623962643737356661613562393361396230363130616138326431333961343263663032346139
62373736623064623338313634623761666265336236353564646633353064633931396461303762
37633762396663653232396432653839653863326361313135303933376163316332366431663063
353131333632363166616666646661383437
32656263363465383531613338653130323635653238383232646265326433616462363464656539
3162306463653134666135376366643861353862663765630a343165613030633661353463316463
30633162376563663166616366643836316363663065333366643338383939636531323538616536
3136383363636131360a326661366265653364323966386634656465376433633035343033653034
38613637613431616637323038363933383037396236386633303366313835333865316563373966
35623038613166356132633264366361313030313765333335343136326165326333656361363462
61383538356434643333653534346264396335653535343362386234316666626431643130346436
34363265613632666431343735376166383466633338353339646337613135613461363366346562
39333135633061376139333030666365366438366434326139313265643034363934306134643630
65356338373564346362633830383337373131366263323166386435313931633139646233623033
36666334613766356463333963653034316636376364303063666237383732396335636231303764
63343963633664393632613263333563643737393466326665633766663764363236333834313737
66353833636661643536633066366666306231643038623632306230656534336666303930303461
62323137353530396135376364316331353138616161303265376334303666633032646631323664
31323336386339326530646237666239333963343732376235306537323336303030613164623765
33383534326532383230616561376136646632643634393563346565336139656339383631333539
66613830313134313239366232323965343063633433653434373564663861323330323663363965
36363132626535663734653739333331616532666635333936306334656264646336366233356562
34383135343335653130636132633631623634333961376262316536633339313033326239356663
38666361636239356665626139643735333461633436373362373034383536326664336663623038
31383237643733613533633535383939313835313363633362343965633336626263623932663862
32376265666438333663373364613861656564326139363731313731343234373934656633613532
35396535306164323237376232633830613432633735663636396137356361303730376239373130
61313630313235373363333862363961313938303332366233656364616536316366326466316439
39376632663062666135623639343136643065363734366430386563613530343061326661653733
63323036633363386636333636633864333334306164306431663662383562396434306336303337
32383137363834633731393564353238636237313361643438306536386432666663383563653834
38613031353265316230363464353638373564636234303266396264306231383634623664626535
64363033373535666135316364303862343732393036396334326136323437646239363361373762
61633761343362653261316434636664353564363330303131333236336230643161623863376634
34613466396330313837643139333565366263363430343536386266323937336466623931383062
62626363383163663637353235343035323233393033623132336664396464343638303839376561
65376537666430666330323430393337666233636165356665323032343563333833383830616165
33636662633961346561373231646664643932386465343537626237663338613836356430393961
39363963633237306561353161643133396366633762336437633138393139653261373539303539
36316464643362336135363631666130653131326435306463366236323830663965363662646361
35643430666365613465666436386332346561326439643863333138363263306331653733343432
63363932303735396234323963363336353133376362306539333131323262336535333733393639
63613064636333303532623935393262373363636161653566373830636131633835366463363533
61333163326262343037313462303930363234316462623963323563303864383163643936643761
61623461326334396539633364643031366231316535643135313935633439643361656136616532
34653635303631623639656165666231363563383336666337323361636137643564373565323238
35353965633230663166353161643033383666373530623739396139366137316438396333666231
34613136363939633565393336336633636665363838323230346262386335386365376262326462
34393539393365346364393432313665356465653866666538323134636630613137333261383364
39313362333832623837313235353331346434303166633137303234303062646337373664373861
32343037613362346134636531356463303739396364646339333138363064376632356534323834
64313864323065303531366435393864303035303331313737316137376361656438353739333830
64333234353837383938393861643236373338323436323863393933643332366363653935646264
37376336616162346161623136393662306137616638383134363964313835333332366430353364
64363730626564393134383534313130313633623137336630386364326365336262373963396239
32393061663964643036323233633232326232656363613339376663633761316639323737383365
33356562643530313434383639393766633733383263366162316332306532366362653737356539
63656366356333396165383330626535626232336137646464323665316464626139373964623163
31626230393661333164303834396331623934356538326166313635656437316236313630313463
65303633616637383436383737366361313736383262663130343932323830383763643235353264
36643966303937336636653037633739303364626638636438396332373862306665623037306336
61626330313364333639353366363131343434663139643361323836353065656137333162333130
65326364396665613763373565323165383638386135366235646437383130333434346635393566
61303263343132663531663237666337326365653737653731626364383665663334643139346338
66613266633263613037646334346661393063373330616431346161376137656139366166616264
64343737643662663134363265653063636665656366656135633932653165343361633835336665
35336139653939656162323366386435623134623062313461613261343264323731613732313435
65313436396464366662366533313162343233323836323336393665646361343438383063623964
63303761316666643237323364336139323536643664363331643565336166316163663731393065
30643638356231303563343433616335306435316161333937363937633131373536346464356539
36663865633336666539363734613131303931363732643665363866643533643763343433616561
66656238653734383131376330616535636138663933393032613166396436623436393563643336
38656164313566356566613331396539656531666462336163373034613232666439346633616166
35316636323064346531656631363265366335336265316362623438336230626332333838626265
61313834393664353133623132303332353633636464343764643334323866303664346563353839
34366534383963383366633765366337363835326133366264323239323266313433636538303537
65306230666335386332613638333738363965623934366338653133623434373831656361386437
37323232346236616236346539613739313237326433363961666535343634643937343331653366
32313864633562346132343538633035303432383033363939306663613939376261653662666161
39383639646338656233376130633966343637353238346435383637376636363631343037336236
36393361646161613736363135343964383364316265343939393333323937376661356331376465
62616333306137643366386561343234663836653833666239383835393031303163393365356661
31356537313530333934653564353039623766326236663635396539616533303831613135653738
31373234346439373230613139636661656636393238363132383732376436646638643131376435
36376435336232353333353563616164643632363565633639623161386436643663656132373135
35646365336365333931653665343461663263333432306131633335333766396165363631663930
66633039383564613739653436666330363661666631353461613333313632333032373939626263
38326164303131386461613962326166666434393031633365306332383663303638666330363632
31343135613065623464646661623865643765613838376434393765663366343961646432306135
62356234323436653166613462373931616236333265616465346564653563323233383962306162
33393030663330336332316332343731666561346539633531653431303934316663363964616236
37336236346563346533643338366433343035653766383663306333633031343462383931343465
38663432383865616432326236376633353935323434333431313739353232343762626439366263
39333762343761613861396431643561653665303831613964363733396663356333373437383766
66343831373463623233646438393537313966613238366334356331356234356232663066316635
66636666333465643132383536643234343135396632393265663465393930346138383761363139
62623966613964373963623362343164623837626638623330383932396638363766383166653462
65346634646264313132623332633536383236376336313339356561663339656430623866306336
66393263656461316433663735353733646638633430663635643064386633666334326437613839
36316333326663663664363436613933636532393630346430313931633533623035346366343934
61303437666334323231343336366330656261646566653938653733633933653562373938633962
30386438343166316366646565333766393930303435663362303432646337323465316261623565
363632346536336638383065656231373538

11
hosts
View File

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

197
main.yml
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,16 +16,20 @@
- hosts: cloud
become: yes
roles:
roles:
- role: docker
tags: docker_install
- name: traefik
vars:
traefik_host: traefik01.comprofix.com
tags: traefik_install
tasks:
tasks:
# - name: Deploy Homepage
# import_tasks: tasks/homepage.yml
# tags: homepage_install
- name: Deploy Vaultwarden
import_tasks: tasks/vaultwarden.yml
tags: vaultwarden_install
@ -34,122 +39,94 @@
tags: gitea_install
tags: cloud_install
- hosts: docker
become: yes
pre_tasks:
- name: Connect iscsi
import_tasks: tasks/iscsi.yml
tags: iscsi_connect
# - hosts: docker
# become: yes
# roles:
# - role: docker
# tags: docker_install
# - role: nfs
# mounts:
# - name: Docker share
# path: /mnt/nfs/docker
# src: truenas.comprofix.xyz:/mnt/datapool/docker
# - 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
# data_folder: "/mnt/nfs/docker"
# tags: traefik_install
# tasks:
# - 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
# - name: Deploy osTicket
# import_tasks: tasks/osticket.yml
# tags: osticket_install
roles:
- role: docker
tags: docker_install
- role: nfs
mounts:
- 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
# - name: Deploy speedtest-tracker
# import_tasks: tasks/speedtest.yml
# tags: speedtest_install
- name: Deploy iDrac Fan Controller
import_tasks: tasks/idrac.yml
tags: idrac_install
# - 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
- name: Deploy MariaDB
import_tasks: tasks/mariadb.yml
tags: mariadb_install
# - name: Deploy readarr
# import_tasks: tasks/readarr.yml
# tags: readarr_install
# - name: Deploy sonarr
# import_tasks: tasks/sonarr.yml
# tags: sonarr_install
- name: Deploy InvoiceNinja
import_tasks: tasks/invoiceninja.yml
tags: invoiceninja_install
# - name: Deploy sabnzbd
# import_tasks: tasks/sabnzbd.yml
# tags: sabnzbd_install
- name: Deploy Homepage
import_tasks: tasks/homepage.yml
tags: homepage_install
# - name: Deploy mealie
# import_tasks: tasks/mealie.yml
# tags: mealie_install
# - name: Deploy pyKMS
# import_tasks: tasks/pykms.yml
# tags: pykms_install
# tags: dockerserver_install
# - name: Deploy osTicket
# import_tasks: tasks/osticket.yml
# tags: osticket_install
- name: Deploy speedtest-tracker
import_tasks: tasks/speedtest.yml
tags: speedtest_install
- 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
- name: Deploy readarr
import_tasks: tasks/readarr.yml
tags: readarr_install
- name: Deploy sonarr
import_tasks: tasks/sonarr.yml
tags: sonarr_install
- name: Deploy sabnzbd
import_tasks: tasks/sabnzbd.yml
tags: sabnzbd_install
- 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
38366130306535633564303136306635643965383961636561366233653333333934326331633837
6563626566653165386636626236313761636563386564610a336165656132393339626334376238
30653062373161653730393865663330643231653763346436336230386638616235303834646639
3734343334356130360a386365633565363538653435346363343766383938633934383638333833
37653762393739376663353430646435306334303538613735663639623562666230353431613839
64656234396263656433643764346336656364313635313537643765633736373532376336303366
62363565613361326532653837323961323937643061643562376562306535326331633137313930
34663663306632663735643139653437316463373361393662633866613436376361353461616132
35326261353062653630666635313566623833343130356139396430616132373632666132393237
34616165376366333137396139623439346537313037306434363364393461343364363265643264
37666632343636633165643961376231386637373463663834663735316536316336396632353330
61376138333564616366616365303134393334656666393433373936623962666134653265653038
34343432373733313365376133633436343536626165366331303639303261346237623162376531
65363830366437613831636564323134343036656230353331326138626330373339343365303766
66313430363137643132383830333463623730636664386135646566653934343136383038373838
35623361646535386661633134613361376565366334386665323638626133646431636163333865
35366164316562643664643631333833316464613961303563633263333865623166613035653565
64646337393964616161623536366431613462663466313634643730636461656364353732653437
33653935373666333366383036643565653361343965653436363836623032613764336566643737
34326562353436356234383634653036366562663434626134666663393636393636613033393136
30303163386265393963613036363964643331363965393032626565353161636230383834356435
64636337613634643831326630346563356166373332303866393636356566633264313961336661
34343932356166616362636133316638393735353735383138633631323439343665353633313461
35636166313436316534623634653631366366346563636138303265343763623935323336383632
64623063623264313962356461386231663832366562383730313965663233613930373437643464
64666533633162313031376536303965303831393137383965393532366331343665663962376138
65393436353231663432656665646436306665353865633265633534636238646336666239613764
34303633343432376134636239336637316434643536613562313137663634666662353433653762
66623035313335626463623632633535323335363434396436326330393338373532613930623736
66313761656231353232643937636134643531396134383236333164666332376365653865363963
34393637646238376563356134613361363638386665633337396564393538366165643735323066
32663437623736386565646265666338376236633363316664306361646235343063633039353638
62316266366530656465653566363137663738633266623663306639653337626562313439653530
64346538646637323730386331383661366532303764643936666232303835363930313866393732
65383564376131613664373437373365643662313862643834316638306534353263306262363265
32313135656463393237633065633430353031616630643563373730396630616431613363663961
37366634373866306461343035363135343064643539336165633534313635326433643235393263
61653935383831393332656562323032336662303562313964356165353562373639396562386536
35306265343861366565636262383436633637373337383962336438636134393065376538323638
35646431316639316139393430653563363566353035343738653432306164393665303936383434
34336236646637646162306463396166383334356134653961306634363962643731373761376330
36346663643835646235326632626135396632316636636131343761396265323734613566613136
66326539333130663361336564333233333337353562376665646361663339323565343232393431
39636363643232396338386630323337383038336564633235323231376638646133336139383864
64626561366563386164366664633039666661386337386637323335656530396665623532653261
62646262626534303362656435663066646633623562636533363138613433663165633738636639
62383330633937653365353136646264653162343966613165373630613631616433653763353233
66653762313764326236316631303663613239336539363633373132623564326339343762653965
34363963353731303132623333363835646334353833383336393066333861623538356233383463
3364363533653462643633386131623535326436333130646434
36326633353666613166393030633363373435666230663138303735323132663930663663383138
3131616265626633663430353835663866356436373533390a623564333539306162613532393661
61326437363033383862343034356639316162363364356135616132396136383962333062653566
3966323033663162640a323461656637633062373134656237323339346638663338353266386164
30653839343165663937653534313335316336356262303331643839643733663264643265633337
62633265656330353536663762643130636466353165336535393033663937396364373064363133
66323931663164313235316638393838326532643233636663333635656162343333643233646131
33336239393035613839646434643633313239393764613836343039383361613437626334643534
33373461336363636162646631323266353235326361393338366563653663343537633765653261
30393863323134376466346663376432623938376638393135356439326562656534376233646364
31353336396362323363323964383635303264646661626662333161303961383333636437393264
61623638303066343832303034633736343031333732633437356134393837663637653738303837
65643264663564643432363830373861323062393561386261323638353339663835663830653633
35373865383832656665333263323463303631343239346632336565393032333865353364386431
34633064356233626337646439623665613039666632366162346534656438393965623836366230
38323765633333663266656161376233343131646165343538653335653061363435316536313339
65366539313338623030663233633766373865653938616437323664633537306162353438373564
30383831353563663834373731356330393535613162313461303265353461643434613833376330
39653063363666353261373161636434366464306539306538623533373764666466383766646166
63313263626539316163656431393534393266666632366430323439373931636235663137393363
66323338643835356338646565653235333762343162636434653561626630333233343232633365
64353139376236363039343432636563316562383263336434376236613734396564393137366531
35613232646638313435326234366335356538393331363862353232353961373734646332646635
37323930623932326164323831393462653331373562336264613635396339653161303863623739
34303532376335623533373466366464666662653533363963326536633938333833376432616330
62326261366463323934663939316338306535323935623935323337333866353539336132326564
64623739623064333932386363353235356431656339663039643631353264376234316430356235
33326233356638646163633333613736343732626263333631336333343434353164333436653331
64376539336562393538613134633933373339363737363364623066383130653033633966316665
36323361656131623435346565323638313030343762313765646264396461616165393762366436
65363563313439376437626533386262323036346436663030303736363061396639633338386337
65623534393561643662653538633630363663326430383030393062323934326465313533303662
30323861613333353465396536653632373934363162393465373466636132383064663063383834
66653938346463663335333737386339666430643034386335353938633232323333633238643035
37643239383936393233353735333164663566663833383763306635646666666365336161316437
64343032376139373036366433376263376565656435336662656661336530323130356266353265
32316361623238386530303533343763646533653631613965386639386237303965636634353366
31363137376633376532383361376631663734653262616237373933363330323337386434623261
63656364653162323463626361633533353132666563393538383332306263316639396530323131
63646566623064393930343137623564323234383430363365313834336464333432623466646139
33343833353339633236613439623735316538373962663365623963663639663264396238363465
61313338343435313035643163316631303433383738393162633032613830663264386538343763
30363434653461396239306334333366333232373732353362666538323063313934346433666334
35363236333038333363653737656362653362376338653364636566346637376566306632326438
32663930613066343361616665396334393863643963316239313735363539333263656133356665
62663236366665373637373436656630336630393333393164343265306533666366333964333338
36376337376366333835326565323735613961323264663466356635653763343331373561666632
61343466643661636335373663386466333232393064623538666636653439363639386462373238
38613862656363373434353037613135363464313864386361323136613762306632653838616463
3438636539363664613934313333336535623165306438353130

View File

@ -0,0 +1,2 @@
---
# defaults file for common

View File

@ -0,0 +1,52 @@
galaxy_info:
author: Matthew McKinnon
description: Portainer CE
company: support@comprofix.com
# If the issue tracker for your role is not on github, uncomment the
# next line and provide a value
# issue_tracker_url: http://example.com/issue/tracker
# Choose a valid license ID from https://spdx.org - some suggested licenses:
# - BSD-3-Clause (default)
# - MIT
# - GPL-2.0-or-later
# - GPL-3.0-only
# - Apache-2.0
# - CC-BY-4.0
license: license (GPL-2.0-or-later, MIT, etc)
min_ansible_version: 2.1
# If this a Container Enabled role, provide the minimum Ansible Container version.
# min_ansible_container_version:
#
# Provide a list of supported platforms, and for each platform a list of versions.
# If you don't wish to enumerate all versions for a particular platform, use 'all'.
# To view available platforms and versions (or releases), visit:
# https://galaxy.ansible.com/api/v1/platforms/
#
# platforms:
# - name: Fedora
# versions:
# - all
# - 25
# - name: SomePlatform
# versions:
# - all
# - 1.0
# - 7
# - 99.99
galaxy_tags: []
# List tags for your role here, one per line. A tag is a keyword that describes
# and categorizes the role. Users find roles by searching for tags. Be sure to
# remove the '[]' above, if you add tags to this list.
#
# NOTE: A tag is limited to a single word comprised of alphanumeric characters.
# Maximum 20 tags per role.
dependencies: []
# List your role dependencies here, one per line. Be sure to remove the '[]' above,
# if you add dependencies to this list.

View File

@ -0,0 +1,29 @@
---
- name: Create directories
file:
path: "{{ item }}"
state: directory
with_items:
- "{{ data_folder }}/portainer"
- name: Create Portainer Container
docker_container:
name: portainer
image: portainer/portainer-ce:2.21.0
command: --admin-password "{{PORTAINER_ADMIN_PASSWORD}}"
restart_policy: unless-stopped
volumes:
- "{{ data_folder }}/portainer/data:/data"
- '/var/run/docker.sock:/var/run/docker.sock'
networks:
- name: proxy
labels:
traefik.enable: "true"
traefik.http.routers.portainer-secure.rule: "Host(`{{portainer_host}}`)"
traefik.http.routers.portainer-secure.entrypoints: "https"
traefik.http.routers.portainer-secure.tls: "true"
traefik.http.routers.portainer-secure.service: "portainer"
traefik.http.services.portainer.loadbalancer.server.port: "9443"
traefik.http.services.portainer.loadbalancer.server.scheme: "https"
register: container_portainer

View File

@ -0,0 +1,14 @@
$ANSIBLE_VAULT;1.1;AES256
66663364383263343838636561393437373730633165306539633566356166313664656166633537
6333663336336463613565666465663430303665323766300a393063366230643139363061633636
65303631383230396461303836386335306261613664393762393266636437333634663464353137
6563366664663331380a346534323264633738663063356565643137323964663964656137633363
33333264383830666637376337633432353732353630333134353638653234333730636166356164
33363433343432623762393834336637626562613633393963323963623661643862636362313930
37346233373231663762346633323634666436323364653136656630636462333638316632626435
30336433353961333334386134383032356633643261656639623237386439653739363133633836
65333065336464386164363037363766353066396163386561323338326439376138316131306636
65376230383666393762393938313535386131313134613033393936633139363366373065623033
33353733613439383366393864623130396231323433393732653966653132313262346538646334
63303831333465613962653661656237326364396465366234383663333431366233363133623936
62663632356361323930326230326565366366663733633137633938643564373766

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.2
image: traefik:v3.1
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
35313033393235333137316165383639623864633332613139393630653931353836643332343062
3336383464363162336333356636393865343634393439370a623130396430383266666634633730
32613332396230333436396338396434393932353037653062613433393932613932333132346335
3564366130306466370a643062633839376636333537393130316332323830306238343861306636
62336532316364376664313765376462653731646433613939353833353632343765616365383632
39616237663731313664633038333365333036386332613738313865396139366537623235646532
34613831666364383065343737643661653931333435393564346139663162313631336162383162
32313038663962326163303533636339306535646362303561613262613632643837333634313230
62393836303366653639303735366430373565373938656162623064356239623131626361633439
65633337303337323934356466656365373136643664313535323734666130306366313434373666
66616463663436623131613238616536313963623566313532653536356637656365363134386535
36306462396161376264643061366534363231326239646665336666333732613230383134383266
3938
65353236643865303034613264613133353338613962646164333936353761336231643332303164
3834613038663965376661373336646433353437373132300a353663633034643265653937396238
66326632323432646239663762626230326338666138653330323566633864623734396639323062
3735326666306239370a383439646335343965316464386265613437646163636335393139316232
61396631356263333933626334313438633132663764326539393663636631303538636131303830
31633037376231326436306463376134633031666431303133383237316530646261383733313132
62343261303266613764633861393939343937343038383231353137333337383936623338313561
64633330356639643863336437653137393364653833653934633762333461393035393963313432
39633563636164363461326231306237343265626533366562626136643561636464663866303434
64363663396334623738316238316135616162393566613631396163666134663765343230656135
35646364666531303361623833643136663832363737623161386562393234393533306636363265
37343438386439303931633434303939393062363138353732373163663761366337326437316537
6137

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,14 +0,0 @@
- name: Create the comprofix.com container
docker_container:
name: comprofix.com
image: git.comprofix.com/mmckinnon/comprofix.com:latest
restart_policy: unless-stopped
recreate: true
networks:
- name: proxy
labels:
traefik.enable: "true"
traefik.http.routers.comprofix.rule: "Host(`comprofix.com`)"
traefik.http.routers.comprofix.entrypoints: "https"
traefik.http.routers.comprofix.tls: "true"
traefik.http.services.comprofix.loadbalancer.server.port: "80"

View File

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

View File

@ -4,13 +4,13 @@
path: "{{ item }}"
state: directory
with_items:
- "{{ data_folder }}/dozzle"
- "{{ data_folder }}/dozzle/config"
- "/mnt/nfs/docker/dozzle"
- "/mnt/nfs/docker/dozzle/config"
- name: Create the dozzle container
docker_container:
name: dozzle
image: amir20/dozzle:v8.8.1
image: amir20/dozzle:v8.4.3
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

@ -78,7 +78,7 @@
- name: Create the gitea-runner container
docker_container:
name: gitea-runner
image: gitea/act_runner:0.2.11
image: gitea/act_runner:0.2.10
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.8
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.9.13
image: ghcr.io/gethomepage/homepage:v0.9.6
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:1f0b525481f79d33115a5edbe866da25cb8c15f9bec2ab9af3f9a08ecc633b10
image: tigerblue77/dell_idrac_fan_controller:latest@sha256:5184af88c6c03204611d40d4b1c6bc36202762592d16a97236bb4254951d23b0
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

@ -4,13 +4,13 @@
path: "{{ item }}"
state: directory
with_items:
- "{{ data_folder }}/invoiceninja/"
- "{{ data_folder }}/invoiceninja/config"
- "{{ data_folder }}/invoiceninja/db"
- "/mnt/nfs/docker/invoiceninja/"
- "/mnt/nfs/docker/invoiceninja/config"
- "/mnt/nfs/docker/invoiceninja/db"
- name: "create stack.env"
copy:
dest: "{{ data_folder }}/invoiceninja/stack.env"
dest: "/mnt/nfs/docker/invoiceninja/stack.env"
content: |
APP_NAME="Invoice Ninja"
APP_ENV=production
@ -60,29 +60,29 @@
docker_container:
name: invoiceninja-app
image: invoiceninja/invoiceninja:5
env_file: "{{ data_folder }}/invoiceninja/stack.env"
env_file: /mnt/nfs/docker/invoiceninja/stack.env
restart_policy: unless-stopped
recreate: true
networks:
- name: proxy
volumes:
- "{{ data_folder }}/invoiceninja/config/hosts:/etc/hosts"
- "{{ data_folder }}/invoiceninja/docker/app/public:/var/www/app/public"
- "{{ data_folder }}/invoiceninja/docker/app/storage:/var/www/app/storage"
- /mnt/nfs/docker/invoiceninja/config/hosts:/etc/hosts
- /mnt/nfs/docker/invoiceninja/docker/app/public:/var/www/app/public
- /mnt/nfs/docker/invoiceninja/docker/app/storage:/var/www/app/storage
- name: Create the invoiceninja-nginx container
docker_container:
name: invoiceninja-nginx
image: nginx:1.27.2
env_file: "{{ data_folder }}/invoiceninja/stack.env"
image: nginx:1.27.1
env_file: /mnt/nfs/docker/invoiceninja/stack.env
restart_policy: unless-stopped
recreate: true
networks:
- name: proxy
volumes:
- "{{ data_folder }}/invoiceninja/config/nginx/in-vhost.conf:/etc/nginx/conf.d/in-vhost.conf"
- "{{ data_folder }}/invoiceninja/docker/app/public:/var/www/app/public"
- "{{ data_folder }}/invoiceninja/docker/app/storage:/var/www/app/storage"
- /mnt/nfs/docker/invoiceninja/config/nginx/in-vhost.conf:/etc/nginx/conf.d/in-vhost.conf
- /mnt/nfs/docker/invoiceninja/docker/app/public:/var/www/app/public
- /mnt/nfs/docker/invoiceninja/docker/app/storage:/var/www/app/storage
labels:
traefik.enable: "true"
traefik.http.routers.invoiceninja.rule: "Host(`invoice.comprofix.com`)"

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

@ -4,13 +4,13 @@
path: "{{ item }}"
state: directory
with_items:
- "{{ data_folder }}/jellyseerr"
- "{{ data_folder }}/jellyseerr/config"
- "/mnt/nfs/docker/jellyseerr"
- "/mnt/nfs/docker/jellyseerr/config"
- name: Create the jellyseerr container
docker_container:
name: jellyseerr
image: fallenbagel/jellyseerr:2.1.0
image: fallenbagel/jellyseerr:1.9.2
restart_policy: unless-stopped
recreate: true
networks:
@ -20,7 +20,7 @@
PGID: "1000"
TZ: "Australia/Brisbane"
volumes:
- "{{ data_folder }}/jellyseerr/config:/app/config"
- /mnt/nfs/docker/jellyseerr/config:/app/config
labels:
traefik.enable: "true"
traefik.http.routers.jellyseerr.rule: "Host(`jellyseerr.comprofix.xyz`)"

View File

@ -8,13 +8,13 @@
path: "{{ item }}"
state: directory
with_items:
- "{{ data_folder }}/lidarr"
- "{{ data_folder }}/lidarr/config"
- "/mnt/nfs/docker/lidarr"
- "/mnt/nfs/docker/lidarr/config"
- name: Create the lidarr container
docker_container:
name: lidarr
image: ghcr.io/linuxserver/lidarr:latest@sha256:5c1f7a05944a1ceea242481801bbc5f908a4cc66e95ae0153b5a59f2d6224b17
image: ghcr.io/linuxserver/lidarr:latest@sha256:a77af413426b8509fad2d02f5b89104a5766ee6ebb13497d73993e74f6cfa0a8
restart_policy: unless-stopped
recreate: true
networks:
@ -26,7 +26,7 @@
AUTO_UPDATE: "true" #optional
DOCKER_MODS: "ghcr.io/themepark-dev/theme.park:lidarr"
volumes:
- "{{ data_folder }}/lidarr/config:/config"
- /mnt/nfs/docker/lidarr/config:/config
- /mnt/nfs/data:/data
labels:
traefik.enable: "true"

View File

@ -8,13 +8,13 @@
path: "{{ item }}"
state: directory
with_items:
- "{{ data_folder }}/mariadb"
- "{{ data_folder }}/mariadb/config"
- "/mnt/nfs/docker/mariadb"
- "/mnt/nfs/docker/mariadb/config"
- name: Create the mariadb container
docker_container:
name: "mariadb"
image: ghcr.io/linuxserver/mariadb:10.11.10
image: ghcr.io/linuxserver/mariadb:10.11.8
restart_policy: unless-stopped
recreate: true
ports:
@ -25,5 +25,5 @@
MYSQL_ROOT_PASSWORD: "{{MYSQL_ROOT_PASSWORD}}"
TZ: "Australia/Brisbane"
volumes:
- "{{ data_folder }}/mariadb/config:/config"
- "/mnt/nfs/docker/mariadb/config:/config"

View File

@ -4,13 +4,13 @@
path: "{{ item }}"
state: directory
with_items:
- "{{ data_folder }}/mealie"
- "{{ data_folder }}/mealie/config"
- "/mnt/nfs/docker/mealie"
- "/mnt/nfs/docker/mealie/config"
- name: Create the mealie container
docker_container:
name: mealie
image: ghcr.io/mealie-recipes/mealie:v2.2.0
image: ghcr.io/mealie-recipes/mealie:v1.12.0
restart_policy: unless-stopped
networks:
- name: proxy
@ -27,7 +27,7 @@
BASE_URL: "mealie.comprofix.xyz"
SMTP_HOST: "{{MAIL_HOST}}"
volumes:
- "{{ data_folder }}/mealie/data/:/app/data"
- /mnt/nfs/docker/mealie/data/:/app/data
labels:
traefik.enable: "true"
traefik.http.routers.mealie.rule: "Host(`mealie.comprofix.xyz`)"

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.14
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

@ -4,8 +4,8 @@
path: "{{ item }}"
state: directory
with_items:
- "{{ data_folder }}/osticket"
- "{{ data_folder }}/osticket/config"
- "/mnt/nfs/docker/osticket"
- "/mnt/nfs/docker/osticket/config"
- name: Create the osticket container
docker_container:

View File

@ -4,13 +4,13 @@
path: "{{ item }}"
state: directory
with_items:
- "{{ data_folder }}/prowlarr"
- "{{ data_folder }}/prowlarr/config"
- "/mnt/nfs/docker/prowlarr"
- "/mnt/nfs/docker/prowlarr/config"
- name: Create the prowlarr container
docker_container:
name: prowlarr
image: linuxserver/prowlarr:1.26.1
image: linuxserver/prowlarr:1.23.1
restart_policy: unless-stopped
recreate: true
networks:
@ -22,7 +22,7 @@
AUTO_UPDATE: "true" #optional
DOCKER_MODS: "ghcr.io/themepark-dev/theme.park:prowlarr"
volumes:
- "{{ data_folder }}/prowlarr/config:/config"
- /mnt/nfs/docker/prowlarr/config:/config
labels:
traefik.enable: "true"
traefik.http.routers.prowlarr.rule: "Host(`prowlarr.comprofix.xyz`)"

View File

@ -4,8 +4,8 @@
path: "{{ item }}"
state: directory
with_items:
- "{{ data_folder }}/pykms"
- "{{ data_folder }}/pykms/db"
- "/mnt/nfs/docker/pykms"
- "/mnt/nfs/docker/pykms/config"
- name: Create the pykms container
docker_container:
@ -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:
@ -21,6 +23,6 @@
HWID: "RANDOM"
LOGLEVEL: "INFO"
volumes:
- "{{ data_folder }}/pykms/db:/home/py-kms/db"
- /mnt/nfs/docker/pykms/db:/home/py-kms/db
- /etc/localtime:/etc/localtime:ro

View File

@ -4,13 +4,13 @@
path: "{{ item }}"
state: directory
with_items:
- "{{ data_folder }}/radarr"
- "{{ data_folder }}/radarr/config"
- "/mnt/nfs/docker/radarr"
- "/mnt/nfs/docker/radarr/config"
- name: Create the radarr container
docker_container:
name: radarr
image: linuxserver/radarr:5.15.1
image: linuxserver/radarr:5.9.1
restart_policy: unless-stopped
recreate: true
networks:
@ -21,7 +21,7 @@
TZ: "Australia/Brisbane"
DOCKER_MODS: "ghcr.io/themepark-dev/theme.park:radarr"
volumes:
- "{{ data_folder }}/radarr/config:/config"
- /mnt/nfs/docker/radarr/config:/config
- /mnt/nfs/data:/data
labels:
traefik.enable: "true"

View File

@ -4,13 +4,13 @@
path: "{{ item }}"
state: directory
with_items:
- "{{ data_folder }}/readarr"
- "{{ data_folder }}/readarr/config"
- "/mnt/nfs/docker/readarr"
- "/mnt/nfs/docker/readarr/config"
- name: Create the readarr container
docker_container:
name: readarr
image: ghcr.io/linuxserver/readarr:develop@sha256:cce7bf45fb74b0eceff09975c4c9e39ca2df467043787c19f6ce8f6d3ecb80e8
image: ghcr.io/linuxserver/readarr:develop@sha256:dbca70a2dedff17b12698f55c02a49e3ec37e8ce884c5352b54264f9a3979aae
restart_policy: unless-stopped
recreate: true
networks:
@ -21,7 +21,7 @@
TZ: "Australia/Brisbane"
DOCKER_MODS: "ghcr.io/themepark-dev/theme.park:readarr"
volumes:
- "{{ data_folder }}/readarr/config/:/config"
- /mnt/nfs/docker/readarr/config/:/config
- /mnt/nfs/data/:/data
labels:
traefik.enable: "true"

View File

@ -4,8 +4,8 @@
path: "{{ item }}"
state: directory
with_items:
- "{{ data_folder }}/sabnzbd"
- "{{ data_folder }}/sabnzbd/config"
- "/mnt/nfs/docker/sabnzbd"
- "/mnt/nfs/docker/sabnzbd/config"
- name: Create the sabnzbd container
docker_container:
@ -22,7 +22,7 @@
HOSTNAME: "sabnzbd.comprofix.xyz"
DOCKER_MODS: "ghcr.io/themepark-dev/theme.park:sabnzbd"
volumes:
- "{{ data_folder }}/sabnzbd/config:/config"
- /mnt/nfs/docker/sabnzbd/config:/config
- /mnt/nfs/data:/data
labels:
traefik.enable: "true"

View File

@ -4,13 +4,13 @@
path: "{{ item }}"
state: directory
with_items:
- "{{ data_folder }}/sonarr"
- "{{ data_folder }}/sonarr/config"
- "/mnt/nfs/docker/sonarr"
- "/mnt/nfs/docker/sonarr/config"
- name: Create the sonarr container
docker_container:
name: sonarr
image: linuxserver/sonarr:4.0.10
image: linuxserver/sonarr:4.0.9
restart_policy: unless-stopped
recreate: true
networks:
@ -21,7 +21,7 @@
TZ: "Australia/Brisbane"
DOCKER_MODS: "ghcr.io/themepark-dev/theme.park:sonarr"
volumes:
- "{{ data_folder }}/sonarr/config/:/config"
- /mnt/nfs/docker/sonarr/config/:/config
- /mnt/nfs/data:/data
labels:
traefik.enable: "true"

View File

@ -4,14 +4,13 @@
path: "{{ item }}"
state: directory
with_items:
- "{{ data_folder }}/speedtest"
- "{{ data_folder }}/speedtest/config"
- "{{ data_folder }}/speedtest/web"
- "/mnt/nfs/docker/speedtest"
- "/mnt/nfs/docker/speedtest/config"
- name: Create the speedtest container
docker_container:
name: speedtest
image: lscr.io/linuxserver/speedtest-tracker:0.24.0
image: lscr.io/linuxserver/speedtest-tracker:0.21.2
restart_policy: unless-stopped
recreate: true
networks:
@ -29,9 +28,10 @@
TZ: "Australia/Brisbane"
SPEEDTEST_SCHEDULE: "0 * * * *"
DISPLAY_TIMEZONE: "Australia/Brisbane"
volumes:
- "{{ data_folder }}/speedtest/config:/config"
- "{{ data_folder }}/speedtest/web:/etc/ssl/web"
- /mnt/nfs/docker/speedtest/config:/config
- /mnt/nfs/docker/speedtest/web:/etc/ssl/web
labels:
traefik.enable: "true"
traefik.http.routers.speedtest.rule: "Host(`speedtest.comprofix.xyz`)"

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.32.5
image: vaultwarden/server:1.32.0
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.21.3
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"