diff --git a/Makefile b/Makefile index 0c30c32..2cd974f 100644 --- a/Makefile +++ b/Makefile @@ -70,6 +70,9 @@ django-shell: docker-compose exec web ./manage.py shell logs: + docker-compose exec web tail /var/log/wagtail/publichealth.log /var/log/wagtail/wagtail.log /var/log/wagtail/error.log + +docker-logs: docker-compose logs -f --tail=500 backup-data: diff --git a/ansible/inventories/evolution/group_vars/webservers/vault.yaml b/ansible/inventories/evolution/group_vars/webservers/vault.yaml index b81a978..e8b4f8d 100644 --- a/ansible/inventories/evolution/group_vars/webservers/vault.yaml +++ b/ansible/inventories/evolution/group_vars/webservers/vault.yaml @@ -1,35 +1,61 @@ $ANSIBLE_VAULT;1.1;AES256 -66363630316536316131333937366161306233636266653639363839393639343831333461316264 -6234393462613538323364353937383132316563653031320a643836623266353238346238366264 -63656334613639653862663636633631323764393162373533396435366165643731663537303631 -3535336536366636370a343133623639323661316635656435393366636634633965343335623731 -62393732666463366130666361336663333036396430356531326431666464663831363338353833 -38373034323165333036663066353337643332663639386262653266303163373939656337323433 -36313036643364653366393738333864333266373663643531613762343039333135643839356566 -64396231636339356538373830393963333239636231306633643937356265666335316135643361 -62396262633634363462306239636163663565346361636361336231653064393537316139393935 -65313339613836323836396631396230653266313265326363373365303966366531323438646138 -61656234336138663736376537373062386265303462356561323966386138396631326230633230 -39633936363065623664333335656665363562333962633039663962353166326639353532653731 -34373161393661386232666131376431643732343731616230636332386536613930316361313463 -37616562363362633230663164653638343037393037306262636636303662343361323363336136 -35393834373439626337363633366464376361646634636564633831646639383864656531386230 -65336630326333343130373663346566613031356561346161353162366230333864333766333132 -38373663356136633234613266343865363061656664656666383966623164333835336631633061 -62366664393533386431373265366135303766303733316366363331386166363362386563613031 -37346166373836373437663839663739646166396661343633386233643435363536386334373430 -65303033636464336166363966336335653665306663633432306262626166373865663465656235 -38653163643363346431633333353035626361383730366136646533623931303036386263356233 -32363663326139643065373830386365323638383039356236336330373966643633626638303437 -34383566623733343339336331386231633030643432396264663130616666623636663062633565 -38323139323635373532346331663863343239313163303431653537633839623766373333376261 -66613437376233303035623864363532356139313834366236613764646131363835663963623565 -65336238613665356438376631636163343331366235346537393437313336313437353936336565 -65656431303636383736616465313833353234346362653565346634336634356364643838353637 -34393666633332623235663261636235336662396134346565376436666366613339353065663065 -32333162363132353137613664616338616363643337313161346335323466663334656531616536 -34656266323238663235323466346433303261313633336533663762336161376231366462636136 -30663133316130393733346631333563343830353865623761363266303237643131653864303266 -64663462663830303463313633343938633761313937646434323366633536626331303639363639 -30653436666539366433646464643961643238343633646362303134646634373036633233343535 -3764643337353533376365643662646635313562303532346132 +35333039666131666639373965613132326263343464646535653261313834646664383638333438 +3066633663663765343734313962366362346232643161320a363333303363646236326536363131 +61393333313261346364366238383338626434373363326437346234363031376137313334383562 +6261326664363962360a353539376364346632663834653430363261633135343639326336666130 +32326337656136623364633930306363376134356562663061346131333336346262643465303064 +61383031366139336432633433613935333466643432306537353737353866386630336661623065 +37336339336463643335623039393134333032623362656139363537633139336636356232653835 +30356237343837306532616661396232363562396631653136626264666431366532353333353035 +66623733636330333435303432363739306263376336336364363032383866316230303662626439 +32376232366364613736326631633534386134343532303433653231363461343638366135333031 +35613730373338366539326564333235393465333465363536623664613430343364323466383532 +38383631376633356437623834663765623930656134613965643531653065393964373035306136 +63303461633164663938363733663963386537386534313534313937633861626665346333316435 +65393830383738663638623631353762643563636466336434356162336636343139633531373563 +62616466323831646238626530653238346161643533643235316333646436653739383936663666 +34383034343265353031356638643035383633623962616235633931643764306663646438333330 +64393033653266633165613934323739316134373239613734396237353934613761316138323162 +37396665303262316663643963313833353738343834616536613637623965666134316137626662 +31643463393833323863646661363030373938316636663936346562623932313263653062333434 +65323135613737646130633432626262373734633538633235303937663434663138303836323761 +64626462633438353762636135333165383862633364313931363461643033653232623835306366 +38343066623137343835326134343961323537393363363061353135366437356266306130393234 +37386539343336663933626232373162613964653034306335386339616165323963666164333163 +30366564323662656235653736626430613438333837653464373665613930376430336566303662 +32343062643031356265313965383536653362623438363335366666353137643062303137323332 +63663530363537393264643634303430616532373036623130383062353864376535656336663538 +62643436343436363335366633356463643561383733353462346162356435303137636232363435 +35663064623631373762633036393763303763613861343535343231633935313733643066316564 +35393737376564303566343035633365353138346632383436386134646637336239363736363265 +36373936333133346135386533373434396235616233343733666465313339653332393839646234 +66653732343239623464643934646637313934323566663238326135623432353463323366353263 +38353838306438643338383335656564313837346138636338343235613765323964393964623530 +37626138643365366466633561396336383433366233383762653530653733343839363930343632 +62656639306339393463396163653464386362363763313930633463643131636661616233323963 +39663163353133663761656132303435326566616532666636383463343735373937643637666565 +34326362626131616533646164333662303231383564616131366231323861646130353563393137 +66316434363366383939643634316637393832383065316636353663353231393264373939333463 +32666336383666333230363238633932323035656537666665363837343634633633316436623461 +33616663303063656432346265626638316636393635636331306139383034353637393836386365 +38356463316262326362663462313037393464303031373632343866633366393131306437373162 +31303231623866363835656233653562313439643535633261653834316339633930376237643830 +34313435336532656361346262323837643433663731663236626433343661623531626464303438 +63346637306535343436386437356464353439636536393336303539616366306138656636326632 +65363736656266643561343264306265333439663435343132633436653334343736386130643836 +34323165306438303363346137643061343438613739653665326439653332613261386138386465 +36323236633962383737636239343739386236333635333730363135383266643432633135633561 +33303133323530616232653362343637653865333130313036346333363763663633616661346432 +37326135376330353538333139336666653666636438383230313530366465336262666636323732 +62313537306666653234656639353535616237383964353961653332373065393634316130353336 +61663734383533613534323761393663333336616431616335383564323839316664316364633965 +36396430316430343832643135333334323037656537323361663465633765363038333432306530 +37313362393032336435386361373436336338636333623532663264383563396463363734656435 +61336534323736396135653361363331383232653166663637656664646264313666343935363362 +32626236653031306537623336316165343962316164633963306431323862666431663134306638 +31313938643238623232313261633366613632356637386262343861393333303538386166373962 +61383837336566386463303036373465363034343166316430663036316236303733303239383639 +33306463306164333363366664346464363164383139363434323930653038396363613838346638 +30623866326265383663326262326262356636343062626330336666623366656437306536393137 +37356265633265613534333639376432633730396239663466316532663733313664346138333930 +31663235643162623132 diff --git a/ansible/roles/wagtail/tasks/frontend.yaml b/ansible/roles/wagtail/tasks/frontend.yaml index 17dbb2c..9982640 100644 --- a/ansible/roles/wagtail/tasks/frontend.yaml +++ b/ansible/roles/wagtail/tasks/frontend.yaml @@ -4,6 +4,14 @@ file: path={{ release_dir }} state=directory owner=ansible group=ansible become: true +- name: Create static directory + file: path={{ release_dir }}/static state=directory owner=ansible group=www-data + become: true + +- name: Set static directory permissions + file: dest={{ release_dir }}/static owner=ansible group=www-data mode=u=rwX,g=rX,o=rX recurse=yes + become: true + - name: Install JavaScript Yarn become: true npm: diff --git a/ansible/roles/wagtail/tasks/install.yaml b/ansible/roles/wagtail/tasks/install.yaml index ff4a37f..ec97442 100644 --- a/ansible/roles/wagtail/tasks/install.yaml +++ b/ansible/roles/wagtail/tasks/install.yaml @@ -4,6 +4,14 @@ file: path={{ release_dir }} state=directory owner=ansible group=ansible become: true +- name: Create media directory + file: path={{ release_dir }}/media state=directory owner=ansible group=www-data + become: true + +- name: Set media directory permissions + file: dest={{ release_dir }}/media owner=ansible group=www-data mode=u=rwX,g=rX,o=rX recurse=yes + become: true + - name: Checkout code branch from git git: dest: "{{ release_dir }}"