1
0
Fork 0
mirror of https://github.com/DO1JLR/ansible_playbook_servers.git synced 2024-09-14 19:53:56 +02:00

template updated

This commit is contained in:
L3D 2021-01-09 01:12:27 +01:00
parent 5b84e726fb
commit 6621bf164e
Signed by: l3d
GPG key ID: CD08445BFF4313D1
2 changed files with 62 additions and 32 deletions

View file

@ -1,29 +1,50 @@
$ANSIBLE_VAULT;1.1;AES256
62346531316462353666653935353765643634316431306562363535653765313432356664313430
3663663236313566343734613734386237373963633230380a376432383862336264396335313939
31623635383837353532633066353834643231393361393863626632346138643331306564353261
3530616535633465610a396164626466643066653964336363353761316531663364653634356235
35343839353834343230303263383130666261323662343736363237373139356339363364633634
38313131363264623735393965306364376237343761346266653536653765373264343763303162
62653536396338366462336635653764303664366234663261323964386438626538326662643261
66303139393231353066383962303263363761343264646663323531653436303766393263636338
35663666666462663137393633616130646561323261633138303833623964376462393836333361
32646437656265633866363766393537653034323661616663373961633961333363313436353438
35323339306665306239393164323030313034643761353765346336353430313935633065383262
37366632356634656236396138363234333538623065363137663637363665643838636466306563
64393735316235643662336435623164646364316633383633303462363162396162363732323562
39396361666261646136366530393431653135373331333362343663616265323536663635346466
34343239393931316632613839303535353938333439636536346337616130373566663439643632
30323661303562616330396130643232333363353565333733303263396265363330373966346139
39626438346130643536623136623862396134643437313639316230353233333761373061383030
62386439656330396539383434383430343865306436373938663662373832353136323062343465
33383235396165363234633465646539363234616634396431643237366639323030333461646132
38353539396131323137626638326536643637323330313233336132386534313931343034636662
64326565303738373061643361346663393362303664376239653666306330363538366639656266
61316537306333323865323235333366633365346163643936386262623330616337666332386239
38333562613835376231313664636535313839633032323165303533666664643032383362383566
64383463373432633162643965326165643131643939626334623334646439386566353662663661
39313835373834343538396161653935633333323762653563313039633164613536336234376336
62316361316139366330323031316134356530636534363533306362613864656230666137303938
37666465323038653665313232376438363862356330323930643135393830343332336437373030
38393266356432613366
32356163343836656430373839643235393161393863643362643064653738616436393332383034
3861323834306562316565383139356636646566316632640a613738393539393138396436636135
33663230343531613232333031323763353266656262393038306430653835396666316237303739
3961333263623463370a653337623332383032643038613831646661616562646536363563646234
63633262386566326138653730363563633465623139346133303166616637383037363935323332
34653436383661656633386436303564373434653365313434353136363538356134666339366439
35373435393739343563653033393461396138323532313061303762353566343164393561373338
63326130313663663261303861386664396131386530353637643830666364303935653465623361
63383634393464396463346666386563316163333034306463303962656232373965303961366631
39633363363433333461353131633161616264666234616235653632363735623539636336313036
66303665656264333636383564623938346336623632356437333238316364306461393661396637
39313466316233376638343037656665383964616533656337626565653639643635303039333437
32396235373537353734383932393331616635313436333530326665363332336165396633303061
34316132653837356236663365383538353065376232626538393933613764313366303263323935
31323763613431313335663138636563313336313534653163363239353966323961333838613733
66613736326666616136396264336335313837646335373464303139643638313761656263656337
30613134373364393335376363316439363936656366653463383934376366313461363866323133
30383533303532333365366338363932306139393131393365323737393931396535323266316166
39633539613966333662303933333036666461396466626332353334633533323265653638393438
62353034323064646234623566313630363633623864346365393932653466663362356430343065
33656166643035663438383434386531646137613138303730623265616333363233306434313635
66356363613362333265326432633730373633646462386565303335383363333963366361393234
32626539663764373130666232313030323938316639323462616438623264336133626432366338
63343166306630653765643138326231653132656234323332353634333436366230623436373165
62666434656666623533306136663735343632316332663062326664646261666263306231366536
34626535366531366534353066373931376435323836386436393632386462346231353866376663
31373966313066316561326431353930663234313964616435636365623864626233363431306266
33373334646239326333653038343134663534383162366536383939663031646563656334323262
66363962366162353563393761383861616366386463333463356336353839313166643832323036
37346535353963393162656564363465333038366336316637393430366136363966373537316237
39613564663630626431646263666666636334326564366337333466366161356661326166626533
36373564663835356337303763616161346139333438356564306533336132643138643733323038
35666463333735326530653736303233303963353334313062646634356634383365616130353436
35386130343638343030633431363165366633653264613165373737646232616636363738366165
31353361333166626565333237353338343933356234303061346163356632643039616365383666
30666133616265643164336536366136313439383064666630363732623032363534393864656566
63666366653732353063633163633565373438663064353361613965633863313964316430383237
31353062353331623439633263366638396332346462663064626639393135383263646635633736
36666431653430373332373263336533306162316133333761323839643163643634383533633530
39333465663435663231636134326239636430383664353139626435313137353139383762376233
35356366663366633938303730323965633136333763303333343730363833666337646638376532
36663832393364633934333630313635363332306261373633323332653265313061323737396263
62316664396532353266653166343966333066363562663438353737616266383963363830643661
35643436373533666434656334343535326462613236306434303035333661626362633530303265
31383037346466613730313161623234623431633066323561306663633465626630643732316162
66623465343438393763353162373961663935633733353830353935636237396133363932613936
63663032333663353239623238343164626265623864663963643134356630633964333132323430
62386566383264656265356466393463303438343134323562336532393434313634313162376236
65393564656133643333303764313063376161333531356538636164366665623230

View file

@ -1,4 +1,6 @@
{#- which table are we setting up #}
{#-
which table are we setting up
-#}
use vmail;
{#-
setup mailserver domain
@ -24,13 +26,14 @@ insert into domains (domain) values ('{{ mailserver_domain }}');
mailserver__accounts:
- username: 'alice'
domain: 'example.com'
password_hash:
password_hash: # generate with $(doveadm pw -s SHA512-CRYPT)
# or $ python -c 'import crypt,getpass; print(crypt.crypt(getpass.getpass(), crypt.mksalt(crypt.METHOD_SHA512)))'
quota: '0'
enabled: true
sendonly: false
mailserver__alias:
- src_username: 'bob'
- src_username: 'bob' # null for catchall
src_domain: 'example.com'
dest_username: 'alice'
dest_domain: 'example.com'
@ -59,5 +62,11 @@ values
REPLACE into aliases
(source_username, source_domain, destination_username, destination_domain, enabled)
values
('{{ alias["src_username"] }}', '{{ alias["src_domain"] }}', '{{ alias["dest_username"] }}', '{{ alias["dest_domain"] }}', {{ alias["enabled"] | default(true) | | ternary('true', 'false') }});
(
{%- if {{ alias["src_username"] }} == 'null' -%}
null
{%- else -%}
'{{ alias["src_username"] }}'
{%- endif -%}
, '{{ alias["src_domain"] }}', '{{ alias["dest_username"] }}', '{{ alias["dest_domain"] }}', {{ alias["enabled"] | default(true) | | ternary('true', 'false') }});
{% endfor %}