refactor common role

This commit is contained in:
HgO
2020-11-28 20:47:30 +01:00
parent 67b8c5f230
commit 2b8f69fc41
45 changed files with 756 additions and 110 deletions

View File

@@ -0,0 +1,20 @@
mastodon_home: /home/mastodon
borgmatic_config:
location:
source_directories:
- "{{ mastodon_home }}"
- /etc
repositories:
- "{{ borg_repository }}"
exclude_patterns:
- "{{ mastodon_home }}/elasticsearch"
- "{{ mastodon_home }}/redis"
storage:
encryption_passphrase: "{{ borg_passphrase }}"
compression: zlib,7
retention:
keep_hourly: 24
keep_daily: 7
keep_weekly: 4
keep_monthly: 6

View File

@@ -0,0 +1,18 @@
$ANSIBLE_VAULT;1.2;AES256;62a40f49-7deb-45e3-8c17-639277033357
63373233646532393433373238336163666262343364316631326561366630636136313631393038
6563313039663237326263383539383736323936343137390a376435313339376630666632633337
64613334626262616464663234313361353731623836316430643266303335386332623137353066
6631636265633336360a366563656463343964316630333762646163653334336663643230353336
66646566363537316631316633306334646630343164303630383638613033653037386564373566
62646435393038396331343337353132396234366163333763326638373933363437643430376334
31303735626564346438383535336465656166633137303439316235323938303236396637336461
63343435623239396433623632653838386666653335346434333865346438643266616366623932
34373065386263633737363863303138636539613536646166643066636166343935313333636564
66613663623565633534656635356431623538306438353963303833373263303735313062343062
36316132636564643564383634333562663136353663336661353433396132353832323063396130
39633535643134663532656266613939353137643765396235633465656436613432303266313765
61333165383030653733333533366232343535396634626237386266613037613838653034326162
64366265313132656536333163616436396232623036386435353565396665343836323838656436
30326363656639366239386637653234303635353630633461393039353462333338303563316132
33353636343865666132343730336438363261383131343662316538633635653434623561633364
6664

View File

@@ -0,0 +1,14 @@
$ANSIBLE_VAULT;1.2;AES256;62a40f49-7deb-45e3-8c17-639277033357
65623932623736623961633664613731383837313338336165366333343763646235316163653836
6130643962393231643262353065653130326566613363630a346138396532663733383133666635
30373362393636363833333530333762666164306436393263336164366637313132356464333931
3861643330306337300a643330613364663861623564356535343035393966383161383739626234
65313335316636646664396433393736386133343765643038663334666462333366353639363061
65303230303132366366343734336462653764613836396531613235393837326532626330636134
63643935323163356462343730633939303537656539336461666139323066366136343262326534
62316332313137626463643964646630663631313464663365313066623934393665306665303031
39613166626639663639623365343364396161656662333134303432656338393333323232366232
63633937343165633638326234386231336637326237336636343830363661376236353939366634
35653962393865616262366433663562333430643465613861643631323035626636343065336636
62613464613462346436353636323035316665313866616535363833393033623339343136653063
3363

View File

@@ -1,8 +0,0 @@
storage_box_username: u212275-sub5
storage_box_password: !vault |
$ANSIBLE_VAULT;1.1;AES256
36313662333062323531613966386365373339663566303133653562663838316632613830613264
6564333736343830623061313534313630313534316231390a666662633861383563333562356561
64616534313266323833383331313334333761323965383634666635663430366461353437616465
6337363536643738310a656530663837386537336434633037376463336165613239323265366234
64663863333763356430616635323061396663373264343666323831646664646430

View File

@@ -0,0 +1,18 @@
$ANSIBLE_VAULT;1.2;AES256;62a40f49-7deb-45e3-8c17-639277033357
64623562393233633764386333323337393862313165626238356166376661353837666332393437
6637336439346134383738656537643263306161363931630a303734333431343634646438663466
36303062376431643537313537343865653136336137363639373635333132323665353735386237
6231666464343734340a643163623832303130333864316534663664313835633964386531646666
64333431366464626633373630353631383233633233613066386137636631646663646535633037
65336635383432616466366338613838656336396462636261623131333033653832623331353036
30653163333566366439366362613933663262643361386332356366363731336163653335396636
36616563353965376537326563363332653336653030303762656530346135383336363337383666
32653563306235383135623733363666313539633032643566653935373762363935306230386566
33656231613634373832316661366630616434343266333562373563383838313236643931363234
37383733353235616261326333386534303362623737353566383536353439353133633735356336
61633934323233393738363635656662396464383033623237623166663733666336313533373937
66303433316461323338333034656238373035356162613662666132636530613966366465363036
65323132653831373531346362366236636665323534663036303366376463613065313861383936
65666463656631636361346130366462326166316533323839303563646133376661313631393333
30303663323436376461323331643939376235313232353164653764306530663265326134333739
3238

View File

@@ -0,0 +1,14 @@
$ANSIBLE_VAULT;1.2;AES256;62a40f49-7deb-45e3-8c17-639277033357
39656566313337306263346133666139643435626566363036303031636336303866346437326662
3431363531363065386666363464653937386162646330610a353161633236643238663032333134
64303731653235323830626638323739626133313634316263343534373337393963643334363861
6433346664336666330a666234373434646635646633323837616561323033363464353931363338
38386238326135653039396161666639383131323430623466626165353634313730623662646139
62653937323363653864313630633165323361663438383631303064383164613232656636333562
65353131633931346161303830393630663264646636633837613031323132666132376139376265
39373362633765633266373261333137396436343832653061323365393336303938613438643830
63396338613463623839396433366538383033316165636564363838313737613761613961343535
33643835366461363439613364303534616437316361383835633261326332636431656664393031
35356232636339383031643838316437303637393938333361636562626633303839656232323231
39633935636234303633386231356333356633386230373962333237656361333933373730616161
3261

View File

@@ -0,0 +1,18 @@
borgmatic_config:
location:
source_directories:
- /var/www/mediawiki
- /etc
repositories:
- "{{ borg_repository }}"
storage:
encryption_passphrase: "{{ borg_passphrase }}"
compression: zlib,7
retention:
keep_hourly: 24
keep_daily: 7
keep_weekly: 4
keep_monthly: 6
hooks:
mysql_databases:
- name: mediawiki_prod

View File

@@ -0,0 +1,14 @@
$ANSIBLE_VAULT;1.2;AES256;62a40f49-7deb-45e3-8c17-639277033357
65316362353466333562363830633862643035363561616137616633353032363832323039383966
3430383934363433643639633732393361323736356562330a616437303366313861636539343236
35623961613737653461653261663137316539653861333736616261313638633539356663313933
3563653063633662300a366132666238623463306662633563336561626335656431393133393835
36366436633162353765386561333865316236363832346465613162393139356362343438353535
39653933656535366365356162333634366231316363633538383165383937623761363066653834
35643638363534383561306332663536396538346638353632353839346637383130383863663030
35393161393163313330626530383662333165363930626563303435393362636439613263653766
39613832613366653339326262333433316138613566333131623334336165373765663237383334
61383839373839373631393831336563633464346636393331633066353839313761393664646438
61323331316238373538663462316533653433386132373664623433376639313364656162666638
30313966656433663766343932633032623463323134306265643264303732383031623763646130
3435