feat: basic routing to caddy
This commit is contained in:
@@ -1,8 +1,5 @@
|
||||
version: 3
|
||||
|
||||
includes:
|
||||
tf: { taskfile: terraform, dir: terraform }
|
||||
|
||||
tasks:
|
||||
dev:
|
||||
- docker compose -f compose.dev.yml rm -fsv
|
||||
|
||||
@@ -3,7 +3,7 @@ localhost_warning = False
|
||||
inventory = inventory.ini
|
||||
host_key_checking = False
|
||||
interpreter_python = /usr/bin/python3
|
||||
vault_password_file = vault.key
|
||||
vault_password_file = secret.key
|
||||
|
||||
[inventory]
|
||||
inventory_unparsed_warning = False
|
||||
|
||||
@@ -1,6 +1,26 @@
|
||||
$ANSIBLE_VAULT;1.1;AES256
|
||||
61313539323564383630383766636664313661303335653031333530623138363233393539646533
|
||||
6333393330663830366237346637316563623635393661630a663932383234643834383936653865
|
||||
35613466623964636535653131643531663166316663653930366565356233373232626361623563
|
||||
3365313962313432620a643833346462656135353831613939326461336363376464323364366265
|
||||
6335
|
||||
36326131353430646433363636333433313266666434623134633136373566306534323231373637
|
||||
6532386232643232343464393964623065326639643866640a353461626332623134613530663136
|
||||
35643737623066313565633035623161366631663630663664313736613063303333373634353064
|
||||
3333376338656539640a313561666239643466616161383561613833323765356238393034663865
|
||||
36643538346263653263646334343063326464656264633461363136383530393931393764356534
|
||||
38663963303737666632363239613836386235343730383530363536386165616339376435326639
|
||||
37333866323262336637383431323538393334393136623838343766636634316338633566343366
|
||||
32306461396134373161633437373730383933343865326363326435393232646163663461666437
|
||||
36613664633633306264656230363862306661363930376666616630363036396639643639343336
|
||||
65653162303435663166383934343936313935643936656235383930616539393239643634323237
|
||||
38613032323336333764633339396163306665666430333762343631383430613463666339323361
|
||||
63333964313832366532363334623236626232633132653639333231386663333865663665343530
|
||||
33613364386531633561373537353432643332663735663833663532373763383237316331306366
|
||||
64616462323739623833303661353764623537313432646137336230383830643761646131386263
|
||||
33663034303064373066363731653737363033373163386466663734643065613039336330313664
|
||||
37666332623264346132343638623332323661363338623335366230323737333961613035646366
|
||||
63316164316135633136326337363464373036383433333830646131363533363338383262623261
|
||||
63353737343236356561323738396631333133366338366538356232663834316230333265626562
|
||||
32363862396362376332383131316665383166386631336631656231636130323339623032386535
|
||||
38383339636339633961393632393063613261653061623465356238306330346464333039393134
|
||||
37356232626434646566346464636131396339646663383333393963336332313931656436353334
|
||||
36303039643837663130336362656636393737633962396531326231383862646631613061323737
|
||||
32346166396139383231663233356233646634633361346564356366343834313835343332363565
|
||||
66303933353231386331326462366239336361386638383861326662613732373661306330616334
|
||||
6634
|
||||
|
||||
19
playbooks/route.yml
Normal file
19
playbooks/route.yml
Normal file
@@ -0,0 +1,19 @@
|
||||
- name: "Create route to instance."
|
||||
hosts: router
|
||||
gather_facts: false
|
||||
tasks:
|
||||
- name: Modify base Caddyfile.
|
||||
ansible.builtin.blockinfile:
|
||||
dest: ~/app/caddy/etc/Caddyfile
|
||||
marker: '# GITEA {mark}'
|
||||
content: "{{ lookup('file', '../router/Caddyfile') }}"
|
||||
notify:
|
||||
- Restart Caddy.
|
||||
|
||||
handlers:
|
||||
- name: Restart Caddy.
|
||||
ansible.builtin.systemd_service:
|
||||
name: container-caddy
|
||||
state: restarted
|
||||
enabled: true
|
||||
scope: user
|
||||
3
router/Caddyfile
Normal file
3
router/Caddyfile
Normal file
@@ -0,0 +1,3 @@
|
||||
code.maximhutz.com {
|
||||
respond "WIP!"
|
||||
}
|
||||
Reference in New Issue
Block a user