diff --git a/ansible/configuration.yml b/ansible/configuration.yml index cadc4e1..96ac58c 100644 --- a/ansible/configuration.yml +++ b/ansible/configuration.yml @@ -2,6 +2,7 @@ - hosts: all vars: notes_port: 41080 + dayoff_port: 41081 vars_files: - vars/vars.yml @@ -100,3 +101,21 @@ MAILER_PASSWORD: '' tags: - apps + + - import_role: + name: docker-app + vars: + username: dayoff + extra_groups: + - docker + ssh_keys: + - '{{ lookup("file", "files/av_id_rsa.pub") }}' + - '{{ lookup("file", "files/dayoff_id_rsa.pub") }}' + env: + DOCKER_PREFIX: dayoff + PROJECT_NAME: dayoff + IMAGE_PREFIX: dayoff + CONTAINER_PREFIX: dayoff + WEB_SERVER_PORT: '127.0.0.1:{{ dayoff_port }}' + tags: + - apps diff --git a/ansible/files/dayoff_id_rsa.pub b/ansible/files/dayoff_id_rsa.pub new file mode 100644 index 0000000..1adcd74 --- /dev/null +++ b/ansible/files/dayoff_id_rsa.pub @@ -0,0 +1,25 @@ +$ANSIBLE_VAULT;1.1;AES256 +36373937313831396330393762313931643536363765353936333166376465343033376564613538 +3235356131646564393664376535646561323435363330660a353632613334633461383562306662 +37373439373636383834383464316337656531626663393830323332613136323438313762656435 +6338353136306338640a636539363766663030356432663361636438386538323238373235663766 +37393035356137653763373364623836346439663062313061346537353634306138376231633635 +30363465663836373830366231636265663837646137313764316364623637623333346636363934 +33666164343832653536303262663635616632663561633739636561333964653862313131613232 +39316239376566633964633064393532613935306161666666323337343130393861306532623666 +39653463323532333932646262663862313961393430306663643866623865346666313731366331 +32663262636132663238313630373937663936326532643730613161376565653263633935393363 +63373163346566363639396432653132646334643031323532613238666531363630353266303139 +31613138303131343364343438663762343936393165356235646239343039396637643666653065 +31363163623863613533663366303664623134396134393765636435633464373731653563646537 +39373766626338646564356463623531373337303861383862613966323132656639326533356533 +38346263326361656563386333663531663232623436653866383865393964353363353563653532 +65343130383262386262393634636338313732623565666531303636303433333638323230346565 +61633837373531343530383238396162373632623135333263323234623833383731336463333063 +62656533636237303962653238653934346430366533636436646264306461323639666665623839 +32643637623630613863323335666138303538313236343932386461346433656432626433663365 +38376666623839393630343637386336623334623064383131316331333564363934636662633630 +31363337393339643738306363306538373133626564613765643138666237303330613036666537 +61363838353736613531613436313730313936363564303464346661376137303133633062613932 +36383631303739306264386663333338666235346339623338333663386663303439363362376239 +35626136646634363430 diff --git a/ansible/templates/Caddyfile.j2 b/ansible/templates/Caddyfile.j2 index b94ab23..dba1882 100644 --- a/ansible/templates/Caddyfile.j2 +++ b/ansible/templates/Caddyfile.j2 @@ -30,6 +30,15 @@ notes.vakhrushev.me { basicauth / {{ notes.login }} {{ notes.password }} } +# Dayoff app +dayoff.vakhrushev.me { + proxy / 127.0.0.1:{{ dayoff_port }} { + transparent + } + + tls anwinged@ya.ru +} + # Yandex Proxy Imager preview.vakhrushev.me { proxy /img https://webdav.yandex.ru {