Always restart containers

This commit is contained in:
Sam A. 2023-04-21 00:29:19 +02:00
parent b437aa28ce
commit 0d7fcf0c7c
Signed by: samsapti
GPG Key ID: CBBBE7371E81C4EA
10 changed files with 55 additions and 45 deletions

View File

@ -1,46 +1,47 @@
$ANSIBLE_VAULT;1.1;AES256
61323466636133343563343037386365626161343538383537323830363037653434373037393233
3236346466623533383562613635343065363562373337340a396262663834623938643733386138
33363063613532613066333066303766373430383732396661366664316536646334633133353634
3538646563356263390a656539663632366537376564383137373964373063366363356462363530
34316463386137343838316466323761363363643061376533366632613234373136316135323330
30326638333135373661313230323337356131663162343633303033336238313535376139316430
38323362353463373537363165363733353932376331663131373634666261373732313235343166
64363539383934623562373834363631333266373535653962363039353938343332653533383364
34623838386339653239656564643139626166303239323630363035623635353462636664666131
31383961633138386137366462623465353963396663373464313234313664626332656461623130
38626330633038653136363332663162353938396461396330636534376239633561336135323039
64303731306636353961616132613630373162316636653266396466313037333365366563633835
37323130663038326632346331353735316263333832383733643831363133653666623066396539
32306235303635653630333431316231306462396266616238663936653262633834353737663362
31303665653862613331343432636466653961393835353630363537666664363638316661313837
39343136626136356461316162353563373164306366366466653261653933313533636265613866
34343764633264396339353032646436626530623031636432313662343833303766303139376366
31626565623464383637313162303837346639623530326333323461303363383664383532616533
65633438663231646263333362313863393766326162303565303165306432376537356239363766
36616365306162373532643861373862353761363830633831343865643263366635646265376666
36653631656234353734356130336438333235326633323430383861316333366637313665353837
35373932373763383136623666323238346566326639633362356131396566353736373563346130
30643633353265363261353262633166333331393437653937333566316233383434343232323765
61376436626630636165303333616234646230323866336138353537623531646133376264313636
31646138663461326433346638643861363232646138626662616137353266656365383139386232
63323664313732633232343536346239653431613934396234313965336431646134643331373566
32323739646635333863313232623161306534326639653131633534363038373262626264653637
37323064333363663430333832626538343634623161353261393038313466386264643034633639
31663662386130363335653637333964616136646533373235313936306535316438373135623935
34353933303233326661643130633530373366376633333935373136396664613730646166333133
30316530653034393432363431376339616330303962343433303265653566366431396134303163
37353339363763386666343837336566313161393336653665333762613435396232336534643361
31643031666635303034373231376436643064663531613938396565363764616630343762623464
62383037346238346534366433323833316465366130346665326266613036313939643365343063
63346263623439363763623238646636663132363539336566613766346235333135626665323331
35323031313339656263613664396535653261616535666336636330613936666635656631303262
35626566626535623435356366393535396562303661373262373965643738396532306565343864
34353166356330333761323837353662613330366632623932313431323166396639666331653039
64376634643261333364393038656633636438306563626136373864663463623032666662633835
62363335326138303834623434353439643530393961323032303165313131613034343466386336
35303337313330313935636464356232636261366635633663336364303138343432613833616236
37376364663166333564633639313636663431623661303762623137643139346265393864623464
35613031306435393762396264383463613634376230346163323237663236393436333837393835
32333735633864343637303535363961656138643162663430633634343834666365303134626530
3663
38633966653464656533353133376466383764396635383031663339383436386339326531356232
6364663335643364336161346331323432623061383332300a373636346230343462316566623463
33336463653637393534366234346530663065393539303938376634633733626566373034386563
6439343861363439310a616437636532336631356335353339656161383937386235346537636333
38626433653431326563326235663537633934306430346630666531373934663462646237383938
66356231373662623462666535376130343530333264353330323761383366393062613331313839
37333862373834306336376463303232353838656463363430323765313233633261346366633436
33326461346564373032633532306564313536643537323664306662326339643230343064313763
66343437393035646338353237313465383832633466666234356165313036376362666662633633
65313338303735653630336539383238666362356434303062333765663838326133373435633330
38626236333865666433623632663463363663653236393739666634383966653232623066393636
35316663316530396633303938383136343231326631336366383631326239666539353333376563
65366339653839323666663534643534316332653930393662663438313163633862356663306338
31343965373230323535633666396636383234613030633135633835633838343531343865663366
63316465383736636662346365323930656238613466363132383635663739373833616462303664
64306331353836376161616433666530366532316335643366306338316363623938393039663361
62343632393465356162633338353137323631336664316666666262373334376464666430323332
30623762326237613461336433616530303730656336616331333935356632336338366633323338
37343132366633346134663437616137646639663936343763353737663136303663373236613666
35353861626531386130663166656261383465653463623536643634393730656161306639323862
34616364363165643337356237333661363331306466356231383565653830653935333166366436
38663038356362346437623061386532303763343161343434663337396536303438396339396263
30366331366463623834313861346530356161626262326262656361663030663036613333646263
33636331373037393136326364613964653861323933663030316139393130303466326635363761
35383963656661393532313638353339313530623834623032323366396631666339323535393261
63633663636332656337373536376139323132376466643738356437643731323234343230353832
62346563386634373035316261656164666166643862316635653438366530393562656637376665
65323164383963343865633137633136396635623265303439656633373334393339666635653836
38663036383537666634306466643434356436363364323334653231666230383161353230303136
39353931666662386133386333356234383438323136643338306539646462663866373330643466
38636230336134616335656333373434313638386365313466386335646538363038303333303530
39613935613936303932653139643430643465613636666464373866653133386637386462373636
38613531643365386130343638616162393234326566313061343130313837383634336533316265
65323563613731366633356432646232653064323263626533323264626561363639343737633034
61343762396632626263666333323038326364346637626135343539373536646366393462643262
30643665633465386634666162383632353365393437623038653037356334383061393931323230
30376537633765393231393161333863363064333632343631353363383366333762343133363635
36346434356331386330633435393139663930636130663464336531353631353062386263663066
66303466613561646265666265346361656166656335326437363362333062363435396333653234
63326366623863363765336261626432376366616630393962376135333233643831386564343838
36393363643662393437336332386465333938613837393564633330663432653633366235363930
65323333346265353537633030306563313330653233643035383264393862303464336335323033
35643164356262613264623862363833636230643938326265623035313565326231623738663839
36303361663963623064383232663866373439623966643332643563323063363336336235656236
63666533643735326665643732356162376134303830663162633064613938616438613638383736
3237646637313135366361303732383831666433643164313334

View File

@ -23,6 +23,7 @@
community.docker.docker_container:
name: caddy
state: "{{ 'absent' if stop is defined and stop else 'started' }}"
restart: "{{ stop is undefined or not stop }}"
image: caddy:{{ services.caddy.version }}
restart_policy: always
networks:

View File

@ -17,6 +17,7 @@
community.docker.docker_container:
name: emby_app
state: "{{ 'absent' if stop is defined and stop else 'started' }}"
restart: "{{ stop is undefined or not stop }}"
image: emby/embyserver_arm64v8:{{ services.emby.version }}
restart_policy: always
env:

View File

@ -9,6 +9,7 @@
community.docker.docker_container:
name: monerod_node
state: "{{ 'absent' if stop is defined and stop else 'started' }}"
restart: "{{ stop is undefined or not stop }}"
image: sethsimmons/simple-monerod:{{ services.monerod.version }}
restart_policy: always
networks:

View File

@ -38,6 +38,7 @@
community.docker.docker_compose:
project_name: nextcloud
state: "{{ 'absent' if stop is defined and stop else 'present' }}"
restarted: "{{ stop is undefined or not stop }}"
pull: true
definition:
version: '3.8'

View File

@ -16,6 +16,7 @@
community.docker.docker_container:
name: postfix
state: "{{ 'absent' if stop is defined and stop else 'started' }}"
restart: "{{ stop is undefined or not stop }}"
image: boky/postfix:{{ services.postfix.version }}
restart_policy: always
env:

View File

@ -4,6 +4,7 @@
community.docker.docker_compose:
project_name: restic
state: "{{ 'absent' if stop is defined and stop else 'present' }}"
restarted: "{{ stop is undefined or not stop }}"
pull: true
definition:
version: '3.8'

View File

@ -4,6 +4,7 @@
community.docker.docker_container:
name: snowflake-proxy
state: "{{ 'absent' if stop is defined and stop else 'started' }}"
restart: "{{ stop is undefined or not stop }}"
image: thetorproject/snowflake-proxy:{{ services.snowflake.version }}
restart_policy: always
network_mode: host

View File

@ -9,6 +9,7 @@
community.docker.docker_container:
name: watchtower
state: "{{ 'absent' if stop is defined and stop else 'started' }}"
restart: "{{ stop is undefined or not stop }}"
image: containrrr/watchtower:{{ services.watchtower.version }}
restart_policy: always
networks:

View File

@ -16,6 +16,7 @@
community.docker.docker_container:
name: wireguard
state: "{{ 'absent' if stop is defined and stop else 'started' }}"
restart: "{{ stop is undefined or not stop }}"
image: linuxserver/wireguard:{{ services.wireguard.version }}
restart_policy: always
networks: