This commit is contained in:
Eliezer Croitoru 2024-04-09 09:45:30 +03:00
parent a17b7ea9db
commit f325fcbeb5
4 changed files with 28 additions and 0 deletions

2
.gitignore vendored
View File

@ -25,3 +25,5 @@ bin/output/cert.csr
bin/output/cert.pem
bin/output/priv.key
bin/tmp/csrconfig.txt
traefik/cert.pem
traefik/key.pem

20
Makefile Normal file
View File

@ -0,0 +1,20 @@
all:
echo OK
deploy-traefik:
ansible-playbook -i local-inventory --connection=local \
--extra-vars config_dir=/etc/app-traefik \
--extra-vars traefik_dashboard_hostname=traefik.ip.ngtech.home \
deploy-traefik.yml
gen-cert:
cd bin && bash gen-cert.sh
use-cert:
cp -vf bin/output/cert.pem traefik/cert.pem
cp -vf bin/output/priv.key traefik/key.pem
install-dependencies:
deploy-docker:
ansible-playbook --connection=local -i local-inventory deploy-docker-ce.yml

4
deploy-local.sh Executable file
View File

@ -0,0 +1,4 @@
ansible-playbook -i local-inventory --connection=local \
--extra-vars config_dir=/etc/app-traefik \
--extra-vars traefik_dashboard_hostname=traefik.ip.ngtech.home \
deploy-traefik.yml

2
local-inventory Normal file
View File

@ -0,0 +1,2 @@
[local]
127.0.0.1