Skip to content

Commit

Permalink
🚨 (ansible-lint): Fixed linter warnings and added a Github action wor…
Browse files Browse the repository at this point in the history
…kflow
  • Loading branch information
theobori committed Apr 29, 2024
1 parent 2dc1b4f commit ca5139e
Show file tree
Hide file tree
Showing 37 changed files with 340 additions and 359 deletions.
5 changes: 5 additions & 0 deletions .ansible-lint-ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
main.yml name[play]
roles/magic/tasks/backup.yml no-changed-when
roles/magic/tasks/base.yml latest[git]
roles/magic/tasks/base.yml no-changed-when
roles/tor/tasks/main.yml no-changed-when
18 changes: 18 additions & 0 deletions .github/workflows/ansible-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: ansible-lint

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
name: Ansible Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run ansible-lint
uses: ansible/ansible-lint@main
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# ☕ ansible-playbook

[![ansible-lint](https://github.com/theobori/ansible-playbook/actions/workflows/ansible-lint.yml/badge.svg)](https://github.com/theobori/ansible-playbook/actions/workflows/ansible-lint.yml)

An Ansible playbook used to deploy theobori.cafe on a Debian system

## 📖 How to build and run ?
Expand Down
25 changes: 10 additions & 15 deletions group_vars/all/etherpad.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
etherpad_db_user: user
etherpad_db_password: !vault |
$ANSIBLE_VAULT;1.1;AES256
33316637343439356562643765353461643636633937653233643066316630313837313462626137
3335613234393463633837383834643034346263303135330a356437353534396638326532313264
34316364376233393432303033666463336665306366626535643962373464393135663337633439
6163623664373263330a626634393035383133343364326162656530623438336333356138353138
3430
etherpad_admin_password: !vault |
$ANSIBLE_VAULT;1.1;AES256
64373131316139653430353261353033646237373933393135623563343465313734636563396237
3461386237353161343230633637323866353336653833340a643734636236343038373362346332
66313766343061313263386432623463646565623064386534306234633739383166643236363563
6562366463393364620a343563393164656338326637643162363936646630306530393666376533
6662
$ANSIBLE_VAULT;1.1;AES256
61303631316138393835373164383666313730646636363431383962363836613637363738313764
6463393337313062653739626663643133376664636263610a313536383139356465623362366139
33323264636366363766633034353763363261363463396331303664333163616461383833643365
6434623965366630640a373731333462346538613462356266613336663430653266336431383331
61633434316430623134666132653633616365343961303535613462643833653631663833623839
33323031313631366430626365656239336339663630336166663937666132373737613837653130
33616366613230343130613731323265623331303265346263313938633832313031643664393631
62626334643466386530613838643734653861383365353430313062386463393666623530373832
6466
31 changes: 10 additions & 21 deletions group_vars/all/gitea.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,10 @@
gitea_db_root_password: !vault |
$ANSIBLE_VAULT;1.1;AES256
31396135356563393865316135303535326166353430366239396134303331656133376630353731
6332346634323830653761633561336635616435613162380a386431303065616332333566616530
64663239343361626239363536636539376264666332393363343632616664363461346530363162
6333616336323263380a643137383063396632333261636239316431383638613066383636316335
66316666313961623933396238616162643064363134373635323738316565653234
gitea_db_user: !vault |
$ANSIBLE_VAULT;1.1;AES256
64643432386636656134313566646431303034646231323466666164623331613430396337366163
6432653232313538653261626533316363663266343031370a323430626566393738616634343963
62623866316634363439386536356135363564396166396562376439613934316537393665616265
3634366163353338380a613761333365653561613761376464653231316662366635316431616430
36613465623631623761613439333162663362356163386364313330646634393233
gitea_db_password: !vault |
$ANSIBLE_VAULT;1.1;AES256
38373532333236636364656432366539373933663432396334633565636262646434633636383231
6132393661346137623033323462353964386233623238630a343735666437353732363836643237
62383937323030383066363365356134306434363564323034363363373164666662396361336236
3235656134306266310a613431393330366337636266656535363931353863366339306433363030
38303264386639353637383262346664653663323233643934653132356661623234
$ANSIBLE_VAULT;1.1;AES256
65623862326261373839353665313863383237396638333633666638333238626233333831336638
6638636139363634656234663164343962343630633361300a653830323464383531393461663461
36643939653266363530333432383061393733623230333466633036396235646530366538326633
6664376130623230370a306661666165643538653034393531336263323239653864316437666464
61616536646436366133376139633437393538343137393632373131393864636335346438386166
36363661613635313837343463623836613933396461313136343139663736623438346231313439
36646136663834386461313534333733343436616336643865636533613263386366636561346361
36653633363266386633623331363136613337393238366562373866643938316363353161633464
34633438383836346631616633613839356336613736313839666430643932343536
34 changes: 12 additions & 22 deletions group_vars/all/knockd.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,12 @@
knockd_open_ssh_seq: !vault |
$ANSIBLE_VAULT;1.1;AES256
64373262323839313933346366616532393733613639346233616336646536633731363432626437
3264333830383038666634333231663639393661316563390a633465333836326430653162643031
34623032616439316439643166353731396535306432303933646236343161323839323130393661
3966356365383963650a653230393766653262323238643531623037366433623963623530396139
3232
knockd_tmp_open_ssh_seq: !vault |
$ANSIBLE_VAULT;1.1;AES256
31303839333837366463373238306235373535353037613735333137386564626566656663373233
3730653165626262626466316365353864333336333131360a343363356137316138343666393361
61393832653239623532623239656232633031623339663562353234353135326463663361346565
3764393965356137640a326566653465343364653964366136326666636433306632623335323034
6163
knockd_close_ssh_seq: !vault |
$ANSIBLE_VAULT;1.1;AES256
39316531363332376439656563326233326366316632633333643130336162663532383230636335
6161363861333266383666346466323832313233356266380a323762383065653735666664643063
39376436306666643564333131366433323538623062653734316462376666303234373436636231
3365313634313939310a323930326334346638373466353963666662326132336539633239643433
3730
knockd_opts: "-i eth0"
$ANSIBLE_VAULT;1.1;AES256
66643662303531323439333963336135383033656266663638396336633864316463613431626465
3235373062393430393334666430623162376330396535360a353533363663353662666230393236
65383337316366613165306637313235663832643236373530326135613735613465393161316434
6639303031623061630a616239353633353962343566313864353863343439653136363063386130
35343838373435356362336339333030633230653963366637626564383061353366666335643037
33613762326536653962656266616635346234356439386562656665383737623033326635333434
35356330336139323138313339343664633739653064343862653338373332383864363634373065
31643737666537353939383433646535616262393764353963623766343038653862623634333430
39386234353130393461333966333930326265336336656430613833383265376263666366613034
39333666303532306636303531323638356139636633653466343434346532623435356530313538
323132653533633764363663353836616531
45 changes: 16 additions & 29 deletions group_vars/all/ldap.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,16 @@
ldap_admin_password: !vault |
$ANSIBLE_VAULT;1.1;AES256
62323637393938613366383161393630356436613239636237613535323036663965656662613333
6437303130353833656338343438303837333362326633640a336433356531366531306338643539
38643937333932373737656432383336353932303566363735643535343666326365663330653130
6331376431323430310a383562336136366266396164376663663131366338303266323237636433
6537
ldap_auth_services_basedn: !vault |
$ANSIBLE_VAULT;1.1;AES256
63393361643935323766383130323733343738323761326138336434393861656165353132336339
3265303435376662343861373535613634396637663562380a316164643239636233386235336266
63333437333131383461643261373662386536666361376266346565323934636161636137623535
3165653633383134620a303930393238656338323133323663663834623431646335346632303964
33366337343331643933656339396163336365376464366530306365663462383562
ldap_auth_services_binddn: !vault |
$ANSIBLE_VAULT;1.1;AES256
39663966646531363138346565326634306363623333336235326237336562366437383635353432
6163646136303935663962363837623434323665636262340a623231613938336536613338303233
61373462353363313831376461633733376631613230616633316162616434663738313637396632
3930633738393465390a376138623065656535613634343937613637393163356136333964626633
37366262643635653964396532666262656464653963346364343537396663376630
ldap_auth_services_bindpw: !vault |
$ANSIBLE_VAULT;1.1;AES256
34306333346530653536633965383031326433643966353765623039653338373163303137303461
6131663236383761613064333865636538353865663064630a353864613433383263306565623063
36356662343939656139313336373134633936383261343337633963646537663661393733346362
6534663831653437340a343232333131643664623964616264306464313235333232616534616263
6662
ldap_auth_services_login_attrib: cn
$ANSIBLE_VAULT;1.1;AES256
65306331323833346264376438373566616238623438623535373033303430636532373162653437
6636643535393966393130613530366261643761313466360a323032306262613636376565323863
34303036663962353738633338626632643837343130663332323236393365373930663737393864
3862333336306535330a643061633839636465336434626237633661323239326163323264343366
32616132326438653538323830623464323232336638363234666532626230303763316638303938
38363266393336396237613062396232303665343631343834616534373034653066636636333932
34356239666535303937666161363230336663666161333331376634366134663230336239623030
30393230353332386366356134303161643033666634653562353631663862343432393130646535
39356238653430666136333930636561386533336334303865323961306332663535613364643164
36393864623837653834643938313032333331333236393664376363373435373234653538326135
31656236633038663963613765643865333233636535646533303739353138663262663634373532
38666532656432303063613764323763386537373936363466663761623364383636333931373032
37393330356133646639313365306131336266383238396162663837306534393633383436373530
30346432316230393530373931353734626465333635616531663337346438366239393561333862
616361353332303837353638373034636130
40 changes: 12 additions & 28 deletions group_vars/all/mailer.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,12 @@
mailer_user: !vault |
$ANSIBLE_VAULT;1.1;AES256
64623737303239656539303533663838626331643238353363363630316366303032323139633133
3839346331363163363565323566353464306161633562300a376331333064343332646430383166
61343361396262623865613637643066663432383532646530383564306337633630336537666562
3834343033386461370a346236383635373033623238376461313334626438383635636332346363
64396430373962306236336462323431376362336130343035623239333034663734
mailer_password: !vault |
$ANSIBLE_VAULT;1.1;AES256
66336566633133323930636332643564636136313631653630633666306461366230393264323136
6139366661376466656661613638626363653231613235370a393933353362316236373164633638
36373336343665326364363563366638363534393833316566366536353066653163313334656233
3934373165613032340a643263623263366135623730626339653136333738366663396661656561
35653034333065326462373762316561626639333139343466323931653533343436
mailer_host: !vault |
$ANSIBLE_VAULT;1.1;AES256
64376134393132323365373233333262613935373562393364383433666632333437656236663130
3336343139353861373031383437353566333963643233350a333436303834396631666562613231
35356564626637323265363063653562356434626562386235623935363938653934616433303332
3331643262646535660a396262646430336261643434656631363362613863333763323139356537
66393937646264323663346436613532343434343262646365363231353838636331
mailer_from: !vault |
$ANSIBLE_VAULT;1.1;AES256
64323534326261393934653931393130346532353263343664316137323238656136643661386461
6637326438643264353137343466396636393965346334610a653032626262613261613033633366
32646433356261343739336632656235303237383735366330306263626134363330303938653536
3265356364623461610a383932386236613538613434663033663933626238623633643439646134
63333430386563393736343430366634376238363031376462653266383062616639
$ANSIBLE_VAULT;1.1;AES256
62643263386231373234636335373764653533313862306639376236623830313861623238366164
3933666262353237326639353961646133663633646436330a333630306463346464623039613835
35303261613632393236336261333634346433376332643638326531353730383233626536633364
3637343234623034340a643538633766313539633233323163653632373337666534356364663633
33316232343833613766613533353734616232353761373830656363633663623034386633366461
34663165376531313232663964633030666637366363653131353963623338316361376535613161
31323366386564636539363163343531356665623839663864353166383632376461656137373331
33653137643835646136326365623665613730343138663836326464346561376265656233393832
33356362386431323931656366323432666366663761393932383536623631653262396238333837
32623063643334356231623734373032393737336235366132613437366562323362313639336365
376261616265373233623830396466373265
42 changes: 14 additions & 28 deletions group_vars/all/nextcloud.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,14 @@
nextcloud_db_user: !vault |
$ANSIBLE_VAULT;1.1;AES256
38356531636561623666313838323534356633643439633565366630333738373764373133333832
6438303462393138616134386430343932373264653336330a343538373863366332356363353833
65343033666330626238326237346166373436343365393132643731316531346237303930313866
3561396563643363630a306231656232613334313864643363666663333936373332303230313036
33653162623761646233626636623862393635326431333261363137366563363531
nextcloud_db_password: !vault |
$ANSIBLE_VAULT;1.1;AES256
38343431336633396539663062363338316137373132643738303731336263613731613564306133
6262663165336233653439393262393965626566323764370a613464383961313337393063303337
61613534336538363864666262643361393665646464333932313065643039353032303639663537
3335643933656638330a613232386365613263353864356166343566643937656139373931633437
35636432313239613839336564343466346139363732393433313964643662336565
nextcloud_db_root_password: !vault |
$ANSIBLE_VAULT;1.1;AES256
38353236393738336262356533636539616262303962343263316138643437616332636531346139
3163333865303963393165633533346631633039626338650a373566346633376539656436303265
38613164373665323536373233653034356266323664393961366136626236633135376339336433
3161393336333534620a303936356465616132343033623430623366386231393464306336393561
35366362623838353539316562383837323736343730633566346134333333346634
nextcloud_redis_password: !vault |
$ANSIBLE_VAULT;1.1;AES256
30303932633534333562306633353763313836653764353738653966326336653166346531663037
3137393535656262323430663263356366326332373635640a383563363435353838343863333039
65376162366233646235303736316431353165323635323961363631383165663565303666613433
3633316364303866630a663332366430316166393363336261653736653536363131643537373837
65646535353635323265653265333434363435363661366637613130366362656565
$ANSIBLE_VAULT;1.1;AES256
33353062613665383365356261373639396163353366326237393831396361653930383531393835
6231323463343935626363653533366662653437333466340a376538663838613532306563366239
66646366346466353162663861323366333434333730303036323238663536343131363937646137
3331623433636435640a643537353865333634336139326634376435346331373265353534613839
34613132663363343235333539366534376332383661643264663330643863656334356232643065
32656666333833343430373436393031626462353263396535636535653535373962383933656138
34646337326234306336636630333131643237363232303833663932613761363235313031383436
62386333336135663937663764666563323835626466326263306365656364643534393465616632
61343732663264333331336637646233653361393236633939356166336637666232636136313332
36393831333739653463326133666438393766303233316131376334303035363832373933623334
39366265393435656363613939376431316330646230363061306638363366316638636363663430
34646263316466613966663861316564666164396362396665633662316566383763326439373038
33346231373731303931333530613333653539373638363034376264653061333631
14 changes: 7 additions & 7 deletions group_vars/all/ssp.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ssp_secretkey: !vault |
$ANSIBLE_VAULT;1.1;AES256
66626163313761633061643336633765383362303632326337373939376438333139636637663664
3366363965393061656330386365383333363538666537630a363665323166383132376665393134
36373333333937613835313963646461616663633663356339316535623564353239653666633636
6437373766353934620a313062316133623934363531353932326366316136363133316130666537
37333165643530343732366566303265343762316537366539383561343236353137
$ANSIBLE_VAULT;1.1;AES256
33396134353963653132393764393338643039313532316433663763663031396534306433333466
3530613065636361613963313063353164396634356435360a656532373536363233626566393861
64343439393637313161356339343630653964633639303461356632313134306461333066653733
3232363663336335330a373333663231386162306461383936653266303232363534373538626331
35636537396430323130356138336532613662333839306166386130656534316363373332396236
3335616261353130396665633565366535636433666665636235
23 changes: 9 additions & 14 deletions group_vars/all/tt-rrs.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
ttrss_db_username: !vault |
$ANSIBLE_VAULT;1.1;AES256
62356233626430306630316436396435313338323439643365383533353262343064353533363435
3366306133336235663431343334666535363533616535330a333334343138636638316466373036
33313436323430613266373634343939363831623739383961653165386438626439396333393533
3031636165346333630a336630363164346637656638353137353438653263323335366238303635
32373536363762393334383038643363663935383637653961383064366435623736
ttrss_db_password: !vault |
$ANSIBLE_VAULT;1.1;AES256
36396665323763383837336533626637346331663437333339613930343563303462333565393139
3530643039653761303165353162663733303430663736640a343762623561353765623037373466
66333064666261636235333836376665396565643135356362633961613764366165613133626163
6333353931643565660a626335346162623562363534613231396337346130303636353161386362
33383332363233363938616232373332393764323962623735626263633534306334
$ANSIBLE_VAULT;1.1;AES256
37373939343965326232383666663263373561336336626162356430313365393638393763363737
3962613064313664373030646636303363393735343236630a323865613832356135363439626165
30386136656466333933363462316332316435336162636633353963336334346466396638313262
3633383030376464640a366335656230616531336538636461353235633132336434353036326337
30633832666634666235613066303934386235333830636133636539396437316435653637356336
36386538616366613533366465306464376436316561633463326336316330656565333464613364
63363364653034653634346662373933373832613661623265376266616638393236346131323466
62393030663961303332
Loading

0 comments on commit ca5139e

Please sign in to comment.